react-auth-box icon indicating copy to clipboard operation
react-auth-box copied to clipboard

Invalid JSON RPC response: ""

Open cgewecke opened this issue 7 years ago • 1 comments
trafficstars

NB: this issue was opened initially at Truffle by @pascal1990 - relocating it here because it looks like it's specific to the react-auth-box (although it may not be).

  • [x] I've asked for help in the Truffle Gitter before filing this issue.

Issue

What the issue is, in broad strokes.

Steps to Reproduce

  • install the truffle react-auth-truffle Unbox
  • configuratre the truffle.js
module.exports = {
  migrations_directory: "./migrations",
  networks: {
    development: {
      host: "localhost",
      port: 8545,
      network_id: "*" // Match any network id
    }
  }
};

I using "ganache-cli" on the same port, but I try to downloag "geth.exe --rpc" and run on the same port 8545 but still not workin

// Get current ethereum wallet. I thinks the problem was here in this function

web3.eth.getCoinbase((error, coinbase) => {
        // Log errors, if any.
        if (error) {
          console.error(error);
        }

Please provide the shortest amount of steps to reproduce your issue.

Expected Behavior

the login and signup should work

What you expected to happen.

Actual Results : inside the console

Error: Invalid JSON RPC response: ""
Stack trace:
InvalidResponse@http://localhost:3000/static/js/bundle.js:54327:17
HttpProvider.prototype.sendAsync/request.onreadystatechange@http://localhost:3000/static/js/bundle.js:59498:26
SignUpFormActions.js:27
Error: Invalid JSON RPC response: ""
errors.js:35

What actually happened. Please give examples and support it with screenshots, copied output or error messages.

Environment

  • Operating System: windows
  • Truffle version: last version
  • Ethereum client:
  • node version:
  • npm version:

cgewecke avatar Feb 16 '18 16:02 cgewecke

@pascal1990 To be clear, are you reporting that the box works with ganache-cli but not with Geth?

cgewecke avatar Feb 16 '18 16:02 cgewecke