truffle-box / react-auth-box

Truffle, Webpack, React, Redux boilerplate with routing and authentication via a smart contract.
https://truffle-box.github.io/
MIT License
176 stars 66 forks source link

Invalid JSON RPC response: "" #33

Open cgewecke opened 6 years ago

cgewecke commented 6 years ago

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

// 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

cgewecke commented 6 years ago

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