Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRangeError('Port should be > 0 and < 65536') #572
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks, @mafintosh says he'll fix it. |
This comment has been minimized.
This comment has been minimized.
|
@feross this comes from |
This comment has been minimized.
This comment has been minimized.
|
Ah, good catch. It's coming from the PORT message which lets peers tell each other about their DHT ports. See: https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L576-L584 The old DHT used to disregard |
This comment has been minimized.
This comment has been minimized.
|
nice. yea i think its best to solve it in webtorrent then. |
This comment has been minimized.
This comment has been minimized.
|
Fixed in 0.72.2. |
This comment has been minimized.
This comment has been minimized.
|
@feross hey! Thanks for the fix! Has it made it to the master branch? I have reinstalled webtorrent and I still have the same issue. For now I have overwritten the changed file myself and it works, but people installing the script will have the same problem. Cheers! |
This comment has been minimized.
This comment has been minimized.
|
This is published on npm as v0.72.2 now. Sorry for the delay, folks! |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
It happens after 10 minutes of streaming to --vlc:
UNEXPECTED ERROR: If this is a bug in WebTorrent, report it!
OPEN AN ISSUE: https://github.com/feross/webtorrent/issues
DEBUG INFO: webtorrent 0.72.1, node v4.0.0, darwin x64, exit 1
dgram.js:278
throw new RangeError('Port should be > 0 and < 65536');
^
RangeError: Port should be > 0 and < 65536
at Socket.send (dgram.js:278:11)
at RPC.send (/usr/local/lib/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/k-rpc/node_modules/k-rpc-socket/index.js:129:15)
at RPC.query (/usr/local/lib/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/k-rpc/node_modules/k-rpc-socket/index.js:173:8)
at RPC._query (/usr/local/lib/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/k-rpc/index.js:146:17)
at RPC.query (/usr/local/lib/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/k-rpc/index.js:113:8)
at DHT._sendPing (/usr/local/lib/node_modules/webtorrent/node_modules/bittorrent-dht/client.js:94:13)
at DHT.addNode (/usr/local/lib/node_modules/webtorrent/node_modules/bittorrent-dht/client.js:84:8)
at Wire. (/usr/local/lib/node_modules/webtorrent/lib/torrent.js:583:23)
at emitOne (events.js:77:13)
at Wire.emit (events.js:169:7)