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:8545
But, I was trying to connect to it with the wrong port :


var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8454"));

Comments

Popular posts from this blog

TypeError: abi.filter is not a function

Truffle 800A1391 runtime error on Windows