kiwicom/starpicker

Timeout requests

Closed this issue · 0 comments

Had this happen today, closed the file descriptor manually with gdb to cause the exception and unstick the process:

2016-08-31 13:23:05,770 DEBUG    starting TweetCollector
2016-08-31 13:23:05,770 DEBUG    fetching in TweetCollector
2016-08-31 13:23:06,698 DEBUG    got response in TweetCollector
2016-08-31 16:33:49,418 ERROR    error while getting TweetCollector response
Traceback (most recent call last):
  File "/opt/venvs/starpicker/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 232, in _error_catcher
    yield
  File "/opt/venvs/starpicker/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 314, in read
    data = self._fp.read(amt)
  File "/usr/lib/python3.4/http/client.py", line 500, in read
    return super(HTTPResponse, self).read(amt)
  File "/usr/lib/python3.4/http/client.py", line 539, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.4/socket.py", line 374, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.4/ssl.py", line 751, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.4/ssl.py", line 623, in read
    v = self._sslobj.read(len, buffer)
OSError: [Errno 9] Bad file descriptor