Skip to content

Instantly share code, notes, and snippets.

@untitaker
Created April 25, 2015 16:23
Show Gist options
  • Save untitaker/5b3ff800951747701ebb to your computer and use it in GitHub Desktop.
Save untitaker/5b3ff800951747701ebb to your computer and use it in GitHub Desktop.
$ python lol.py
Traceback (most recent call last):
File "/home/untitaker/projects/requests/requests/packages/urllib3/connectionpool.py", line 372, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/untitaker/projects/requests/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/home/untitaker/projects/requests/requests/packages/urllib3/connectionpool.py", line 374, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib64/python3.4/http/client.py", line 1162, in getresponse
raise ResponseNotReady(self.__state)
http.client.ResponseNotReady: Request-sent
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/untitaker/projects/requests/requests/adapters.py", line 370, in send
timeout=timeout
File "/home/untitaker/projects/requests/requests/packages/urllib3/connectionpool.py", line 597, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/untitaker/projects/requests/requests/packages/urllib3/util/retry.py", line 245, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/untitaker/projects/requests/requests/packages/urllib3/packages/six.py", line 309, in reraise
raise value.with_traceback(tb)
File "/home/untitaker/projects/requests/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/home/untitaker/projects/requests/requests/packages/urllib3/connectionpool.py", line 374, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib64/python3.4/http/client.py", line 1162, in getresponse
raise ResponseNotReady(self.__state)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', ResponseNotReady('Request-sent',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "lol.py", line 6, in <module>
s.get('http://httpbin.org/stream/20')
File "/home/untitaker/projects/requests/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/home/untitaker/projects/requests/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/home/untitaker/projects/requests/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/home/untitaker/projects/requests/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady('Request-sent',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment