You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'catch' of null
at new Peer (/home/abbes/node/uto/node_modules/simple-peer/index.js:129:29)
at WebSocketTracker._createPeer (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:405:18)
at generateOffer (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:371:47)
at WebSocketTracker._generateOffers (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:364:7)
at WebSocketTracker.announce (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:61:12)
at Socket. (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:42:14)
at Object.onceWrapper (node:events:471:28)
at Socket.emit (node:events:377:35)
at Socket._handleOpen (/home/abbes/node/uto/node_modules/simple-websocket/index.js:202:10)
at WebSocket.Socket._ws.onopen (/home/abbes/node/uto/node_modules/simple-websocket/index.js:77:36)
The text was updated successfully, but these errors were encountered:
I got this exception executing the example file node-download.js.
is there any fix for this?
using ubuntu 20.04 with nodejs 16.1.0
thanks in advance.
full error body:
/home/abbes/node/uto/node_modules/simple-peer/index.js:129
this._pc.peerIdentity.catch(err => {
^
TypeError: Cannot read property 'catch' of null
at new Peer (/home/abbes/node/uto/node_modules/simple-peer/index.js:129:29)
at WebSocketTracker._createPeer (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:405:18)
at generateOffer (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:371:47)
at WebSocketTracker._generateOffers (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:364:7)
at WebSocketTracker.announce (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:61:12)
at Socket. (/home/abbes/node/uto/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:42:14)
at Object.onceWrapper (node:events:471:28)
at Socket.emit (node:events:377:35)
at Socket._handleOpen (/home/abbes/node/uto/node_modules/simple-websocket/index.js:202:10)
at WebSocket.Socket._ws.onopen (/home/abbes/node/uto/node_modules/simple-websocket/index.js:77:36)
The text was updated successfully, but these errors were encountered: