Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My code:
I get this error (I use WSL):
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 164, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7fd1b410aac0>, 'Connection to 172.17.32.1 timed out. (connect timeout=10)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.17.32.1', port=7545): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fd1b410aac0>, 'Connection to 172.17.32.1 timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Deploy.py", line 47, in
nonce = w3.eth.get_transaction_count(my_address)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/eth/eth.py", line 451, in get_transaction_count
return self._get_transaction_count(account, block_identifier)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/module.py", line 75, in caller
result = w3.manager.request_blocking(
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/manager.py", line 320, in request_blocking
response = self._make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/manager.py", line 208, in _make_request
return request_func(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/gas_price_strategy.py", line 101, in middleware
return make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/formatting.py", line 126, in middleware
response = make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/attrdict.py", line 43, in middleware
response = make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/formatting.py", line 126, in middleware
response = make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/formatting.py", line 126, in middleware
response = make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/buffered_gas_estimate.py", line 43, in middleware
return make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/middleware/exception_retry_request.py", line 124, in middleware
return make_request(method, params)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/providers/rpc.py", line 90, in make_request
raw_response = make_post_request(
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/_utils/request.py", line 114, in make_post_request
response = get_response_from_post_request(endpoint_uri, data=data, *args, **kwargs)
File "/home/anizhetho/.local/lib/python3.8/site-packages/web3/_utils/request.py", line 107, in get_response_from_post_request
response = session.post(endpoint_uri, *args, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 583, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='172.17.32.1', port=7545): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fd1b410aac0>, 'Connection to 172.17.32.1 timed out. (connect timeout=10)'))
Beta Was this translation helpful? Give feedback.
All reactions