Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
Hi,
I am running my code with python3.7 and I am having this issue for two days. I have deleted and reinstalled the python-binance library but it did not resolve it. Is there anyone having the same or similar issue, the couse of it and how to resolve it?
Thanks
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 140, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 67, in create_connection for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): File "/usr/lib/python3.7/socket.py", line 752, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 560, in urlopen body=body, headers=headers) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request self._validate_conn(conn) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 787, in _validate_conn conn.connect() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 231, in connect conn = self._new_conn() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 149, in _new_conn self, "Failed to establish a new connection: %s" % e) requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4ab60d2090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/adapters.py", line 376, in send timeout=timeout File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 610, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 283, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/order (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4ab60d2090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "SSF_HOTUSDT.py", line 257, in run ) File "/home/emirhanyasin/.local/lib/python3.7/site-packages/binance/client.py", line 1200, in create_order return self._post('order', True, data=params) File "/home/emirhanyasin/.local/lib/python3.7/site-packages/binance/client.py", line 240, in _post return self._request_api('post', path, signed, version, **kwargs) File "/home/emirhanyasin/.local/lib/python3.7/site-packages/binance/client.py", line 202, in _request_api return self._request(method, uri, signed, **kwargs) File "/home/emirhanyasin/.local/lib/python3.7/site-packages/binance/client.py", line 196, in _request self.response = getattr(self.session, method)(uri, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 523, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 480, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 588, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 437, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/order (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4ab60d2090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
I'm having exactly the same issue. As of yet, i haven't found a solution
me too i enter at https://api.binance.com/ and conection is ok