nellore / vickitrix

Trigger crypto trades on GDAX with the Twitter stream
MIT License
28 stars 7 forks source link

Intermittent 'Connection broken', 104 socket errors #8

Open hierux opened 6 years ago

hierux commented 6 years ago

Hi nellore,

I've been running vickitrix on an aws instance to ensure 100% uptime and have started experiencing intermittent 'Connection broken'/'Connection reset by peer' errors. Is there some new rate limiting imposed by Twitter that's breaking the twython stream? Have you run into this issue?

Traceback (most recent call last):
  File "/usr/local/bin/vickitrix", line 11, in <module>
    sys.exit(go())
  File "/usr/local/lib/python2.7/dist-packages/vickitrix/__init__.py", line 640, in go
    track=list(keywords)
  File "/home/ubuntu/.local/lib/python2.7/site-packages/twython/streaming/types.py", line 66, in filter
    self.streamer._request(url, 'POST', params=params)
  File "/home/ubuntu/.local/lib/python2.7/site-packages/twython/streaming/api.py", line 141, in _request
    for line in response.iter_lines(self.chunk_size):
  File "/home/ubuntu/.local/lib/python2.7/site-packages/requests/models.py", line 763, in iter_lines
    for chunk in self.iter_content(chunk_size=chunk_size, decode_unicode=decode_unicode):
  File "/home/ubuntu/.local/lib/python2.7/site-packages/requests/models.py", line 722, in generate
    raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: error("(104, \'ECONNRESET\')",)', error("(104, 'ECONNRESET')",))