0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/logger/__snapshots__/err-serializer.spec.ts.snap
Rhys Arkins be10c29d17
fix(http): improve error handling (#17587)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-10-19 04:27:07 +00:00

37 lines
897 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`logger/err-serializer got sanitize http error 1`] = `
{
"code": "ERR_NON_2XX_3XX_RESPONSE",
"message": "Response code 412 (Precondition Failed)",
"name": "HTTPError",
"options": {
"headers": {
"accept": "application/json",
"accept-encoding": "gzip, deflate, br",
"user-agent": "RenovateBot/0.0.0-semantic-release (https://github.com/renovatebot/renovate)",
},
"hostType": "any",
"http2": false,
"method": "POST",
"password": "***********",
"url": "https://**redacted**@github.com/api",
"username": "",
},
"response": {
"body": {
"err": {
"message": "failed",
},
},
"headers": {
"content-type": "application/json",
},
"httpVersion": null,
"retryCount": 0,
"statusCode": 412,
"statusMessage": "Precondition Failed",
},
}
`;