internet-computer-protocol / evm-rpc-canister

Interact with EVM blockchains from the Internet Computer.
https://internetcomputer.org/docs/current/developer-docs/multi-chain/ethereum/evm-rpc/overview
Apache License 2.0
63 stars 13 forks source link

When accessing a custom URL through evm_rpc, I receive the error HttpOutcallError(IcError { code: SysTransient, message: \"Connecting to node.dobno30489dlkwmd.info failed: Failed to directly connect: client error (Connect)\" }) #292

Closed Meet-King closed 20 hours ago

Meet-King commented 1 week ago

When I start evm_rpc canister on my local dfx, everything works fine for calling nonce and sending transactions. But after deploying on IC, the same JSON-RPC call to fetch the nonce returns the error mentioned above. Both local and IC configurations are identical, and the node is a custom private chain, which works fine on local.

Can anyone help me?

rvanasa commented 1 week ago

Thank you for reaching out. What blockchain / network ID are you using for the request? If you can send an example dfx command and output, that would be helpful for us to reproduce the issue and understand what's happening.

I tried running eth_getBlockByNumber on the IC and got the same error message as you. When running locally, I get the following message: Connecting to node.dobno30489dlkwmd.info failed: Failed to directly connect: error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known. Maybe this address is only accessible from your local machine?

Meet-King commented 20 hours ago

The problem has been solved. The link of the node needs to support IPv6. Thank you for your reply