-
-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPError
s have unspecified response body
#1162
Comments
Can you set up a full example of the bug? |
We have many tests that prove it's defined, for example: Line 20 in 1f6ac45
but since Got has been fully rewrited to utilize the native streams new bugs may occur. |
Yep. But first - am I supposed to have |
I see. I'll try to hack together a minimal repro.. Hold on.. |
Yep. All |
The |
Ok, classic thing, minimal repro gives me https://runkit.com/kirillgroshkov/5e9dbf8b5ca48500131a30b8 It logs |
Same code with |
HTTPError
s have unspecified response body
Ok, I know how to fix this, give me 15 mins. |
I've encountered another problem. I passed only one |
Fixed in d914a7e |
Released |
Describe the bug
Actual behavior
I had a BeforeErrorHook that in got@10 had
err.response
defined, so I usederr.response.body
to display/format error. In got@11 the same code tells me thaterr.response.body
is undefined.Briefly:
Expected behavior
err.response.body
to be definedChecklist
The text was updated successfully, but these errors were encountered: