We've seen this issue a few times from customers attempting to connect to Web3.
w3 = Web3(HTTPProvider("https://ethshared.bdnodes.net")) --- error: timeout
There is no timeout with HTTPProvider but there can be a timeout with the response the user is expecting. The suggested solution was to increase their timeout value when creating their web3 object.
Web3(HTTPProvider("https://ethshared.bdnodes.net", request_kwargs={'timeout': 60})) \\instead of default 10
Comments
Please sign in to leave a comment.