Replies: 4 comments 18 replies
-
At first glance, is |
Beta Was this translation helpful? Give feedback.
-
No matter what I try, I'm getting no connection. I've reinstalled ethers, node_modules, and ganache. I've switched ports that Ganache is listening on and verified that Ganache was indeed listening on the specified port and that the port was open. I've verified that my firewall is not blocking connection. I'm still getting this error. I get this error with ethers 5.7.2 and ethers 6.1.0 JsonRpcProvider failed to startup; retry in 1s I'll add my package.json and package-lock.json to my repo. Maybe there is something off. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm trying to run the code from ethers.js to connect to Ganache:
And I get this error:
JsonRpcProvider failed to startup; retry in 1s
Error: connect ECONNREFUSED 127.0.0.1:7545
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 7545
}
I thought maybe its because port 7545 is closed but its open and listening. I allowed connections to be made on the port. Any idea why I would be getting this error?
Beta Was this translation helpful? Give feedback.
All reactions