You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our company uses web3 with a proxy. Proxies are not officially supported by web3 at the moment but we imperatively need it. We used the hack explained in this ticket: #887 to resolve the issue and it worked fine until web beta.37 but fails now that we updated to web3 beta.55.
The error we get is the following:
Connection refused or URL couldn't be resolved: https://{URL}
This didn't happen with web3 beta.37.
The purpose of this ticket is mostly to ask how to configure web3 with a proxy if anyone has succeeded in doing so.
Expected behavior
Calling await web3.eth.getAccounts() should return successfully using a proxy.
This behavior has been confirmed with integration tests.
Actual behavior
Calling await web3.eth.getAccounts() returns an error: Connection refused or URL couldn't be resolved
Thanks for opening this issue! I will close this one because of the already existing feature request. Feel free to update the HttpProvider in the web3-providers module.
Description
Our company uses web3 with a proxy. Proxies are not officially supported by web3 at the moment but we imperatively need it. We used the hack explained in this ticket: #887 to resolve the issue and it worked fine until web beta.37 but fails now that we updated to web3 beta.55.
The error we get is the following:
The purpose of this ticket is mostly to ask how to configure web3 with a proxy if anyone has succeeded in doing so.
Expected behavior
Calling
await web3.eth.getAccounts()
should return successfully using a proxy.This behavior has been confirmed with integration tests.
Actual behavior
Calling
await web3.eth.getAccounts()
returns an error: Connection refused or URL couldn't be resolvedSteps to reproduce the behavior
web3
andhttp-proxy-agent
Error Logs
await web3.eth.getAccounts()
returns an error: Connection refused or URL couldn't be resolvedVersions
The text was updated successfully, but these errors were encountered: