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

[rinkeby] httpx.ConnectError: [Errno 8] nodename nor servname provided, or not known #50

Open
Yakim1429 opened this issue Aug 17, 2022 · 0 comments

Comments

@Yakim1429
Copy link

mycode:
provider = ZkSyncProviderV01(provider=HttpJsonRPCTransport(network=network.rinkeby))
provider.get_contract_address()

result:
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/yakim/PycharmProjects/web3-gadget/contract/zksync_test_callC.py", line 122, in
test_sync()
File "/Users/yakim/PycharmProjects/web3-gadget/contract/zksync_test_callC.py", line 86, in test_sync
loop.run_until_complete(task)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/Users/yakim/PycharmProjects/web3-gadget/contract/zksync_test_callC.py", line 81, in get_contract_address
ret = await provider.get_contract_address()
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/zksync_sdk/zksync_provider/v01.py", line 59, in get_contract_address
data = await self.provider.request("contract_address", None)
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/zksync_sdk/transport/http.py", line 16, in request
response = await client.post(self.network.zksync_url, json=self.create_request(method, params))
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_client.py", line 1842, in post
return await self.request(
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_client.py", line 1527, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_client.py", line 1614, in send
response = await self._send_handling_auth(
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_client.py", line 1642, in _send_handling_auth
response = await self._send_handling_redirects(
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_client.py", line 1679, in _send_handling_redirects
response = await self._send_single_request(request)
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_client.py", line 1716, in _send_single_request
response = await transport.handle_async_request(request)
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/contextlib.py", line 131, in exit
self.gen.throw(type, value, traceback)
File "/Users/yakim/PycharmProjects/web3-gadget/test_env/lib/python3.8/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 8] nodename nor servname provided, or not known

@Yakim1429 Yakim1429 changed the title httpx.ConnectError: [Errno 8] nodename nor servname provided, or not known [rinkeby] httpx.ConnectError: [Errno 8] nodename nor servname provided, or not known Aug 17, 2022
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