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

react-auth-truffle invalid json rpc response: "" #742

Closed
1 task done
pascalfossouo opened this issue Jan 9, 2018 · 2 comments
Closed
1 task done

react-auth-truffle invalid json rpc response: "" #742

pascalfossouo opened this issue Jan 9, 2018 · 2 comments

Comments

@pascalfossouo
Copy link

pascalfossouo commented Jan 9, 2018


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:
@nikhilshekhawat
Copy link

nikhilshekhawat commented Jan 23, 2018

Inside utils/getWeb3.js change line 24 to: (edited)
var provider = new Web3.providers.HttpProvider(‘http://127.0.0.1:8545’)

There is a typo there for the port number. Hopefully they accept the pull request:
truffle-box/react-box#42

@cgewecke
Copy link
Contributor

@Pascal1990 Apologies for the delay responding to this issue. I'm going to close this and re-open it at the react-auth-box repository here where other people using the box can find it. We'll try to address it there.

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

3 participants