yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
303 stars 192 forks source link

undefined when found opportunity #22

Open hatemua opened 2 years ago

hatemua commented 2 years ago

Do you know what is the issue here? image_2022-01-10_210654

iouae commented 2 years ago

Would you please provide traceback or something?

royshahar commented 2 years ago

poly-flashloan-bot\node_modules\@ethersproject\logger\lib\index.js:199 var error = new Error(message); ^

Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.1) at Logger.makeError (D:\crypto\poly-flashloan-bot\node_modules\@ethersproject\logger\lib\index.js:199:21) at Logger.throwError (D:\crypto\poly-flashloan-bot\node_modules\@ethersproject\logger\lib\index.js:208:20) at JsonRpcProvider. (D:\crypto\poly-flashloan-bot\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:517:54) at step (D:\crypto\poly-flashloan-bot\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:48:23) at Object.throw (D:\crypto\poly-flashloan-bot\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:29:53) at rejected (D:\crypto\poly-flashloan-bot\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:21:65) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'could not detect network', code: 'NETWORK_ERROR', event: 'noNetwork'

royshahar commented 2 years ago

image

ezera23 commented 2 years ago

It happens to me when I have a bad network or 4G... since I use EC2 I definitely don't have anymore this error and these undefined.....

adedade commented 2 years ago

Want to report the same issue has happened to me

┌───┬────────┬─────────┬────────┬─────────┬──────┬──────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────┬──────────────────────────┐
│ # │ From   │  Amount │ To     │  Amount │    ± │    % │ Log                                                                                                                                                                                                          │   Time │                Timestamp │     ├───┼────────┼─────────┼────────┼─────────┼──────┼──────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────┼──────────────────────────┤
│ undefined0 │ undefinedDAI    │ undefined1000.00 │ undefinedETH    │ undefined1010.94 │ undefined10.9 │ undefined 1.1 │ undefined                                                                                                                                                                                                             │ undefined  1.2s │ undefined2022-02-07T01:07:59.472Z │1 │ undefined11.5 │ undefined 1.2 │ undefined                                                                                                                                                                               ┌───┬────────┬─────────┬────────┬─────────┬──────┬──────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────┬──────────────────────────┐
│ # │ From   │  Amount │ To     │  Amount │    ± │    % │ Log                                                                                                                                                                                                          │   Time │                Timestamp │     ├───┼────────┼─────────┼────────┼─────────┼──────┼──────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────┼──────────────────────────┤
│ undefined0 │ undefinedDAI    │ undefined1000.00 │ undefinedETH    │ undefined1010.94 │ undefined10.9 │ undefined 1.1 │ undefined                                                                                                                                                                                                             │ undefined  1.2s │ undefined2022-02-07T01:07:59.472Z │1 │ undefined11.5 │ undefined 1.2 │ undefined

when that happens the BOT seems to be doing a low of requests to the Polygon network

image

adedade commented 2 years ago

@yuichiroaoki any idea of the above? seems to be a recurring issue 🙇