Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Invalid JSON RPC response: "" #33

Open
1 task done
cgewecke opened this issue Feb 16, 2018 · 1 comment
Open
1 task done

Invalid JSON RPC response: "" #33

cgewecke opened this issue Feb 16, 2018 · 1 comment

Comments

@cgewecke
Copy link

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).


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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant