Any ideas about how to get around the noNetwork error, as seen in the video walkthrough by Adam when trying to liquidate multiple positions at once (when he first demo'd running on Polygon in Test mode)?
The script seems to stop after liquidating one position even if multiple liquidatable positions are available.
Copied the error below:
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)
at Logger.makeError (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at EthersProviderWrapper. (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
at step (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork'
}
Any ideas about how to get around the noNetwork error, as seen in the video walkthrough by Adam when trying to liquidate multiple positions at once (when he first demo'd running on Polygon in Test mode)?
The script seems to stop after liquidating one position even if multiple liquidatable positions are available.
Copied the error below:
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)
at Logger.makeError (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at EthersProviderWrapper. (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
at step (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork'
}