You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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);
});
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.
The text was updated successfully, but these errors were encountered: