Closed tuxxy closed 6 years ago
Hi, Could you take a look to the response of the server using tools like Wireshark ?
The BadStatusLine
exception is raised by the builtin HTTP client in the following cases:
HTTP/
(first chunk of the response)Although, the line numbers in your stack trace doesn't match the ones on Python's repo
.
Maybe you should take a look into your Python installation, "/usr/lib/python3.4/http/client.py
@ line 333 to check which of these conditions causes the raise of an exception.
It appears to be throwing the exception due to the version not starting with HTTP/
.
When printing version
, it looks to be empty.
This works on our server with Python2.7, so we're looking at the server to see if it's sending everything properly. I'll reply with more info once I get it.
Thanks for your help!
I'm performing the call, and it does seem to be connecting to the server, performing the method, and retrieving that data I want, but it raises the BadStatusLine error.
Any info on what may be causing this?