trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.32k forks source link

Error: Invalid JSON RPC response: "" #492

Closed stiv-yakovenko closed 7 years ago

stiv-yakovenko commented 7 years ago

My config:

module.exports = {   networks: {
    development: {
      host: "localhost",
      port: 8545,
      network_id: "*" // Match any network id
    }   } };

My geth running on the same port:

C:\Users\steve\AppData\Roaming\Mist\binaries\Geth\unpacked\geth.exe --testnet --fast --ipcpath \\.\pipe\geth.ipc --rpccorsdomain * --rpcport 8545

I use Geth/v1.6.6-stable-10a45cb5/windows-amd64/go1.8.3

What's wrong?

tcoulter commented 7 years ago

Hi there. This error message means Truffle cannot connect to your Ethereum client. There are many reasons for this. For yours, it looks like you need the --rpc option for geth as well as your other options.

We have a ticket currently being worked on that will make this error message better. Please see #489.

Cheers!

stiv-yakovenko commented 7 years ago

dear tcoulter, your recipe was correct, --rpc was missing. thanx you!

pascalfossouo commented 6 years ago

Please where I should put the --rpc option ?I have the same problem

pascalfossouo commented 6 years ago

@stiv-yakovenko Please where I should put the --rpc option ?I have the same problem

stiv-yakovenko commented 6 years ago

after geth.exe

pascalfossouo commented 6 years ago

@stiv-yakovenko I use ganache-cli on windows it's possible to do that ?

stiv-yakovenko commented 6 years ago

I don't know what it is, ask its authors.

prameshbajra commented 6 years ago

I have this error in ganache. Did anyone experience similar error? How do I get it fixed?

@pascal1990 did you get it resolved? If yes, how?

pascalfossouo commented 6 years ago

Hi, @prameshbajra do you have metamask on your browser and which app you tru to run, ganache is a node module