Skip to content

I'm getting TypeError [ERR_INVALID_URL]: Invalid URL #6

@Roboticol

Description

@Roboticol

I was trying to run this code and got this error, anyone knows how to fix this:

node:internal/url:552
  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] (d:\profitable_flashloans\node_modules\web3-providers-ws\lib\helpers.js:14:20)
    at new WebsocketProvider (d:\profitable_flashloans\node_modules\web3-providers-ws\lib\index.js:62:29)
    at Object.<anonymous> (d:\profitable_flashloans\run-arbitrage.js:12:3)
    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',
  code: 'ERR_INVALID_URL'
}

Btw I used node "d:\profitable_flashloans\run-arbitrage.js" to run the program

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions