{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2510","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2510/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2510/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2510/events","html_url":"https://github.com/kennethreitz/requests/issues/2510","id":63408132,"number":2510,"title":"TypeError: getresponse() got an unexpected keyword argument 'buffering'         ","user":{"login":"jribbens","id":350846,"avatar_url":"https://avatars.githubusercontent.com/u/350846?v=3","gravatar_id":"","url":"https://api.github.com/users/jribbens","html_url":"https://github.com/jribbens","followers_url":"https://api.github.com/users/jribbens/followers","following_url":"https://api.github.com/users/jribbens/following{/other_user}","gists_url":"https://api.github.com/users/jribbens/gists{/gist_id}","starred_url":"https://api.github.com/users/jribbens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jribbens/subscriptions","organizations_url":"https://api.github.com/users/jribbens/orgs","repos_url":"https://api.github.com/users/jribbens/repos","events_url":"https://api.github.com/users/jribbens/events{/privacy}","received_events_url":"https://api.github.com/users/jribbens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-21T14:07:08Z","updated_at":"2015-11-07T00:08:50Z","closed_at":"2015-03-21T16:21:22Z","body":"Firstly, please note I have already read issues #1289 and  #1915.\r\n\r\nSecondly, please note that I am fully aware that the problem is that the underlying URL fetch failed due to a problem that is outside Requests' control, i.e. a network problem or failure of the remote web server.\r\n\r\nMy problem is not that an exception is raised - my problem is that the *wrong* exception is raised. According to the Requests documentation, in this circumstance a `ReadTimeout` exception should be raised, and in any event the exception should be a subclass of `RequestException`. Instead, a `TypeError` is being raised. This is fatal for my application, which needs to know *why* the request failed and to be sure that it was indeed a network failure and not a bug in the application or Requests itself. As far as I can see, this is indeed a bug in Requests.\r\n\r\n I am using Requests 2.5.3 on Python 3.4.0 on Ubuntu 14.04.2.\r\n\r\n```\r\nTraceback (most recent call last):                                                                                                                                                   \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py\", line 372, in _make_request                                             \r\n    httplib_response = conn.getresponse(buffering=True)                                                                                                                              \r\nTypeError: getresponse() got an unexpected keyword argument 'buffering'                                                                                                              \r\n                                                                                                                                                                                     \r\nDuring handling of the above exception, another exception occurred:                                                                                                                  \r\n                                                                                                                                                                                     \r\nTraceback (most recent call last):                                                                                                                                                   \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py\", line 374, in _make_request                                             \r\n    httplib_response = conn.getresponse()                                                                                                                                            \r\n  File \"/usr/lib/python3.4/http/client.py\", line 1147, in getresponse                                                                                                                \r\n    response.begin()                                                                                                                                                                 \r\n  File \"/usr/lib/python3.4/http/client.py\", line 351, in begin                                                                                                                       \r\n    version, status, reason = self._read_status()                                                                                                                                    \r\n  File \"/usr/lib/python3.4/http/client.py\", line 313, in _read_status                                                                                                                \r\n    line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")                                                                                                                         \r\n  File \"/usr/lib/python3.4/socket.py\", line 371, in readinto                                                                                                                         \r\n    return self._sock.recv_into(b)                                                                                                                                                   \r\nsocket.timeout: timed out                                                                                                                                                            \r\n                                                                                                                                                                                     \r\nDuring handling of the above exception, another exception occurred:                                                                                                                  \r\n                                                                                                                                                                                     \r\nTraceback (most recent call last):                                                                                                                                                   \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/adapters.py\", line 370, in send                                                                             \r\n    timeout=timeout                                                                                                                                                                  \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py\", line 597, in urlopen                                                   \r\n    _stacktrace=sys.exc_info()[2])                                                                                                                                                   \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py\", line 245, in increment                                                     \r\n    raise six.reraise(type(error), error, _stacktrace)                                                                                                                               \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/packages/six.py\", line 310, in reraise                                                     \r\n    raise value                                                                                                                                                                      \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py\", line 544, in urlopen                                                   \r\n    body=body, headers=headers)                                                                                                                                                      \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py\", line 376, in _make_request                                             \r\n    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)                                                                                                                  \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py\", line 304, in _raise_timeout                                            \r\n    raise ReadTimeoutError(self, url, \"Read timed out. (read timeout=%s)\" % timeout_value)                                                                                           \r\nrequests.packages.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='www.libraryofbirmingham.com', port=80): Read timed out. (read timeout=30)                            \r\n                                                                                                                                                                                     \r\nDuring handling of the above exception, another exception occurred:                                                                                                                  \r\n                                                                                                                                                                                     \r\nTraceback (most recent call last):                                                                                                                                                   \r\n  File \"./bitatawa-client.py\", line 231, in check                                                                                                                                    \r\n    timeout=settings.getint(\"check-timeout\", 30))                                                                                                                                    \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/api.py\", line 65, in get                                                                                    \r\n    return request('get', url, **kwargs)                                                                                                                                             \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/api.py\", line 49, in request                                                                                \r\n    response = session.request(method=method, url=url, **kwargs)                                                                                                                     \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/sessions.py\", line 461, in request                                                                          \r\n    resp = self.send(prep, **send_kwargs)                                                                                                                                            \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/sessions.py\", line 573, in send                                                                             \r\n    r = adapter.send(request, **kwargs)                                                                                                                                              \r\n  File \"/home/jribbens/src/bitatawa/lib/python3.4/site-packages/requests/adapters.py\", line 433, in send                                                                             \r\n    raise ReadTimeout(e, request=request)                                                                                                                                            \r\nrequests.exceptions.ReadTimeout: HTTPConnectionPool(host='www.libraryofbirmingham.com', port=80): Read timed out. (read timeout=30)                                                  \r\n```"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/154582763","html_url":"https://github.com/kennethreitz/requests/issues/2510#issuecomment-154582763","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/2510","id":154582763,"user":{"login":"kevinburke","id":234019,"avatar_url":"https://avatars.githubusercontent.com/u/234019?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinburke","html_url":"https://github.com/kevinburke","followers_url":"https://api.github.com/users/kevinburke/followers","following_url":"https://api.github.com/users/kevinburke/following{/other_user}","gists_url":"https://api.github.com/users/kevinburke/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburke/subscriptions","organizations_url":"https://api.github.com/users/kevinburke/orgs","repos_url":"https://api.github.com/users/kevinburke/repos","events_url":"https://api.github.com/users/kevinburke/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburke/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T00:08:50Z","updated_at":"2015-11-07T00:08:50Z","body":"(sorry) "}}