-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Web3.js fails to make calls with SOCKS5 proxy #2946
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I am trying to use web3 over a SOCKS5 proxy, it fails at URL resolution.
Expected behavior
That calling an
web3.eth.Contract
's method returns data.Actual behavior
The result of
node test.js
is:Error: Connection refused or URL couldn't be resolved: http://127.0.0.1:9999
Steps to reproduce the behavior
Use any boilerplate web3.js code with a contract ABI and call a method on that contract over a SOCKS5 proxy where the host is running a geth instance. Curling such an instance works, e.g.
however running web3 over the same SOCKS5 proxy does not.
Error Logs
None. Only the
actual behaviour
section.Versions
The text was updated successfully, but these errors were encountered: