Small, fast HTTP client library for Python. Features persistent connections, cache, and Google App Engine support. Originally written by Joe Gregorio, now supported by community.
When I was using a proxy that dropped the connection I got this error message
socks.GeneralProxyError: Connection closed unexpectedly
During handling of the above exception, another exception occurred:
...
File "~/Applications/google-cloud-sdk/platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py", line 195, in _errno_from_exception
return e_int.args[0].errno if isinstance(e_int.args[0], socket.error) else e_int.errno
IndexError: tuple index out of range
Similar to https://github.com/httplib2/httplib2/pull/202 but the socket.error may also have empty args so check the length again, or revert to the
errno
field.When I was using a proxy that dropped the connection I got this error message
httplib2_IndexError_tuple_index_out_of_range.txt