Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid JSON RPC reponse "" #1431

Closed
rayeaster opened this issue Mar 7, 2018 · 2 comments
Closed

Invalid JSON RPC reponse "" #1431

rayeaster opened this issue Mar 7, 2018 · 2 comments

Comments

@rayeaster
Copy link

We recently got a frequent [Invalid JSON RPC reponse ""] from web3js library and the whole app then crash, no matter using local parity or infura node. However, local parity node seems more stable on this issue. seems the web3 library get some bug in eth_getBlockByNumber which might return empty string. Not sure if it is the real culprit. we are testing on kovan.

@gyn7561
Copy link

gyn7561 commented Mar 8, 2018

Are u using HDWalletProvier?
If u are using HDWalletProvier,u can catch exception like this.

var HDWalletProvider = require("truffle-hdwallet-provider");

let infuraProvider = new HDWalletProvider(mnemonic, "https://kovan.infura.io/<token>");

infuraProvider.engine.on("error", function (error) {
    console.log(error);
});

@nivida nivida closed this as completed Aug 9, 2018
@ghost
Copy link

ghost commented Jul 5, 2022

Note that this issue has been addressed by the recent PR #5179 to replace the broken xhr2-cookies for the modern fetch API.

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

No branches or pull requests

3 participants