Request timeout with Infura Ropsten API

I am getting the following Connection Error all of a sudden.

port=443): Max retries exceeded with url: /v3/<PROJECT-ID> (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object 
at 0x7f5537e50400>: Failed to establish a new connection: [Errno -3] Temporary 
failure in name resolution'))")))
Sentry is attempting to send 0 pending error messages

I also tried ping

Pinging [] with 32 bytes of data:
Request timed out.

Is there any limit on API request?

Resolved. It was mistake from my side.

Glad you were able to resolve the issue, would you mind sharing the details in case we can improve our documentation or have the resolution here in case someone else has the same issue?

How did you solved it? I met the same problem.

Hi @Fint, and welcome to the Infura community!

Can you share the code you’re running and the full error message, and we can help you out?

Hi there it would be great help if you could share the library or documentation you are using

ConnectionError: HTTPSConnectionPool(host='', port=443):
Max retries exceeded with url: /api?module=contract&action=getsourcecode&addres
s=<My Contract Deployed Address>&apiKey=<My Ethereum Api-Key>(Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object
at 0x00000145A6637EE0>: Failed to establish a new connection: [WinError 10060]

The above error occurred when I deployed the smart contract with brownie, though my network can access

Is it because of the infura api? Do I need to set the allowlist about api?

I also set environment variable with PROJECT_ID of Infura in the my brownie project.

I solved it. I add the code that set my network proxy in the python file.

1 Like

Glad you figured it out, and thanks for sharing your solution so future users can see how you fixed it! :slight_smile: