EatTheBlocks Forum

Listening to the blocks node runarbitrage.js error

Hi guys, new hear and new at everything kind of overwhelming, Got to the part in the course listening to the blocks and got a 936 error and just as i scan it today the error changed to 552 error. Im vary new at this and i don’t get all the tech talk. Is there anything i can do to repair this.

node run-arbitrage.js
throw new ERR_INVALID_URL(input);

TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:371:5)
at onParseError (node:internal/url:552:9)
at new URL (node:internal/url:628:5)
at Object.helpers [as parseURL] (C:\Users\mauii\profitable-flashloans\node_modules\web3-providers-ws\lib\helpers.js:14:20)
at new WebsocketProvider (C:\Users\mauii\profitable-flashloans\node_modules\web3-providers-ws\lib\index.js:61:29)
at Object. (C:\Users\mauii\profitable-flashloans\run-arbitrage.js:4:5)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
input: ‘undefined’,

Try clearing and redoing your infura key again. Make sure to grab the wss link.

Well you were right about the 552 error re added infura wss link but after that i got this code again
$ node runarbitrage.js
throw err;

Error: Cannot find module ‘C:\Users\mauii\profitable-flashloans\runarbitrage.js’

←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:9
←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m

←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/r
←[90m at node:internal/main/run_main_module:17:47←[39m {
code: ←[32m’MODULE_NOT_FOUND’←[39m,
requireStack: []