Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection reset by peer #52

Open
jarrodjay opened this issue Sep 22, 2021 · 0 comments
Open

Connection reset by peer #52

jarrodjay opened this issue Sep 22, 2021 · 0 comments

Comments

@jarrodjay
Copy link

jarrodjay commented Sep 22, 2021

I continue to get an "Connection reset by peer" issue, sometimes no more than a few minutes after I start the script. Anyone else experiencing this? It's not my network that's an issue. I've tried on multiple OVH servers (Australia, Canada), I've tried on my local network. All the same.

urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "main.py", line 64, in add_updated_all_coins_to_queue
    all_coins_updated = get_all_coins()
  File "main.py", line 22, in get_all_coins
    return client.get_all_tickers()
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 571, in get_all_tickers
    return self._get('ticker/price', version=self.PRIVATE_API_VERSION)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 371, in _get
    return self._request_api('get', path, signed, version, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 334, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 314, in _request
    self.response = getattr(self.session, method)(uri, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Discussion around the Binance API having issues with dropping clients here - https://www.reddit.com/r/binance/comments/lzz831/requestsexceptionsconnectionerror_connection/, but nothing of use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant