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
Error: CONNECTION ERROR: Couldn't connect to node https://192.168.200.200:30041.
at Object.ConnectionError (/somedapp/node_modules/web3-core-helpers/lib/errors.js:66:23)
at Object.InvalidConnection (/somedapp/node_modules/web3-core-helpers/lib/errors.js:36:21)
at HttpProvider.failed (/somedapp/node_modules/web3-providers-http/lib/index.js:139:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Expected Behavior
Error: CONNECTION ERROR: Couldn't connect to node FetchError: request to https://192.168.200.200:30041/ failed, reason: connect ECONNREFUSED 192.168.200.200:30041.
at Object.ConnectionError (/somedapp/node_modules/web3-core-helpers/lib/errors.js:66:23)
at Object.InvalidConnection (/somedapp/node_modules/web3-core-helpers/lib/errors.js:36:21)
at HttpProvider.failed (/somedapp/node_modules/web3-providers-http/lib/index.js:140:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Fixes. web3#5954
Existing code gobbles up the real error and only prints a generic message with the URL. This change utilizes the error object to give a better indication of what failed with the connection.
* Improve logging of connection errors
Fixes. #5954
Existing code gobbles up the real error and only prints a generic message with the URL. This change utilizes the error object to give a better indication of what failed with the connection.
* Updated CHANGELOG
* Fix PR number in Changelog
---------
Co-authored-by: Wyatt Barnes <[email protected]>
Is there an existing issue for this?
Current Behavior
Expected Behavior
Steps to Reproduce
Try using https://github.com/web3/web3.js/tree/1.x/packages/web3-providers-http with a URL that is down or with a JSON RPC endpoint that uses a self signed certificate.
Web3.js Version
1.8.2
Environment
Anything Else?
No response
The text was updated successfully, but these errors were encountered: