muon-protocol / muon-node-js

9 stars 18 forks source link

Contract data load failure #351

Closed sadeghte closed 1 year ago

sadeghte commented 1 year ago

Sometimes, an error occurs when loading contact data and it does not resolve until the app is restarted. The error is:

muon:network:utils loading NodeManager data failed. 
ContractExecutionError: Error happened while trying to execute a function inside a smart contract 
at Function._isReverted (file:///usr/src/muon-node-js/node_modules/web3-core/src/web3_request_manager.ts:432:48) 
at Web3RequestManager._processJsonRpcResponse (file:///usr/src/muon-node-js/node_modules/web3-core/src/web3_request_manager.ts:361:35) 
at Web3RequestManager.<anonymous> (file:///usr/src/muon-node-js/node_modules/web3-core/src/web3_request_manager.ts:206:16) 
at Generator.next (<anonymous>) 
at fulfilled (file:///usr/src/muon-node-js/node_modules/web3-core/lib/esm/web3_request_manager.js:20:58) 
at processTicksAndRejections (node:internal/process/task_queues:95:5) 
{ 
    innerError: [Eip838ExecutionError: execution reverted] 
    { 
        innerError: undefined, 
        code: -32000, 
        receipt: undefined, 
        data: undefined 
    }, 
    code: 310, 
    receipt: undefined 
}
bakhshandeh commented 1 year ago

@sadeghte if this happens on ALICE, we should add the error to list of the recoverable errors. One of the RPCs is returning error and it does not switch to a new one.

sadeghte commented 1 year ago

fixed in d2d29f9