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

Error: Cannot read property 'catch' of null #127

Open
abbes-mebrouki opened this issue May 21, 2021 · 4 comments
Open

Error: Cannot read property 'catch' of null #127

abbes-mebrouki opened this issue May 21, 2021 · 4 comments

Comments

@abbes-mebrouki
Copy link

abbes-mebrouki commented May 21, 2021

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)

@DiegoRBaquero
Copy link
Member

Missing a line of the trace, the main one

@abbes-mebrouki
Copy link
Author

Sorry, but I don't understand what do you mean by: "Missing a line of the trace"?
can you be more specific?

and thanks.

@DiegoRBaquero
Copy link
Member

The first line of the error body is missing, you have the stack trace, but not the error and its message.

@abbes-mebrouki
Copy link
Author

thanks, I've updated it.

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

No branches or pull requests

2 participants