-
Notifications
You must be signed in to change notification settings - Fork 321
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
Incorrect response headers give a generic message instead of indicating a problem parsing the headers #674
Comments
For clarity, you're saying in this case that the If so, I would agree a better error message would indicate that the headers are malformed. |
Yes. (and the actual body is empty) |
I forgot to mention we are on version 4.4.1 |
Aah, we completely changed parsers in v5.0, so I'd be curious if this problem persists |
I just tried that, but my complaints about their broken headers are being taken seriously. They are trying to fix but currently the server is not responding at all... I'll let you know if I can get a result with 5.0.0 |
We are sending a request to a server that is sending incomplete response headers (i.e. last line of headers does not contain a
:
).As a result we get a
ConnectionError
telling us 'error reading from socket: Could not parse data' (fromConnection.read_more()
). It would have been very helpful if we would get a message stating that the response headers were incorrect (andConnection.read_headers!
which callsread_more
does seem to indicate that in some cases).The text was updated successfully, but these errors were encountered: