Error: Invalid JSON RPC response: undefined
This error is usually caused by connecting web3 to the wrong port. For instance, my testrpc was :
Listening on localhost:8545But, I was trying to connect to it with the wrong port :
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8454"));
Comments
Post a Comment