Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting BAD_PORT_RANGE on node v17.0.1 #385

Open
Just-Moh-it opened this issue Mar 26, 2022 · 0 comments
Open

Getting BAD_PORT_RANGE on node v17.0.1 #385

Just-Moh-it opened this issue Mar 26, 2022 · 0 comments

Comments

@Just-Moh-it
Copy link

I'm running the command:

peerflix "magner_uri..." -a --vlc

and getting the error:

node:internal/validators:216
    throw new ERR_SOCKET_BAD_PORT(name, port, allowZero);
    ^

RangeError [ERR_SOCKET_BAD_PORT]: Port should be > 0 and < 65536. Received 69692710.
    at new NodeError (node:internal/errors:371:5)
    at validatePort (node:internal/validators:216:11)
    at Socket.send (node:dgram:629:12)
    at send (/opt/homebrew/lib/node_modules/peerflix/node_modules/bittorrent-tracker/lib/client/udp-tracker.js:186:12)
    at UDPTracker._request (/opt/homebrew/lib/node_modules/peerflix/node_modules/bittorrent-tracker/lib/client/udp-tracker.js:92:3)
    at UDPTracker.announce (/opt/homebrew/lib/node_modules/peerflix/node_modules/bittorrent-tracker/lib/client/udp-tracker.js:38:8)
    at /opt/homebrew/lib/node_modules/peerflix/node_modules/bittorrent-tracker/client.js:230:13
    at Array.forEach (<anonymous>)
    at Client._announce (/opt/homebrew/lib/node_modules/peerflix/node_modules/bittorrent-tracker/client.js:228:18)
    at Client.start (/opt/homebrew/lib/node_modules/peerflix/node_modules/bittorrent-tracker/client.js:166:8) {
  code: 'ERR_SOCKET_BAD_PORT'
}

Node.js v17.0.1

Environment:

  • Arm Based M1-MacBook Air
  • Node v17.0.1
  • Shell: Fish

Hope this helps, I'm unable to debug the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant