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

Get this error sometimes when a peer doesn't respond #355

Open
Gronis opened this issue Dec 21, 2020 · 1 comment
Open

Get this error sometimes when a peer doesn't respond #355

Gronis opened this issue Dec 21, 2020 · 1 comment
Labels

Comments

@Gronis
Copy link

Gronis commented Dec 21, 2020

What version of this package are you using?
9.15.0
What operating system, Node.js, and npm version?
14.15.1
What happened?
The following exception is raised:

node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:380
        delete self.peers[offerId]
^
TypeError: Cannot convert undefined or null to object
    at Timeout._onTimeout (/Users/robin/git/webpeer/wps/build/webpack:/wps/node_modules/bittorrent-tracker/lib/client/websocket-tracker.js:380:1)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

It seams that self.peers is set to null.
After browsing the bittorrent-tracker code, I don't really understand why it is set to null though.
What did you expect to happen?
The peer is disconnected without exception.
Are you willing to submit a pull request to fix this bug?
Sure

@github-actions
Copy link

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@github-actions github-actions bot added the stale label Jul 22, 2021
@alxhotel alxhotel reopened this Jul 29, 2021
@github-actions github-actions bot closed this as completed Aug 6, 2021
@alxhotel alxhotel removed the stale label Aug 6, 2021
@alxhotel alxhotel reopened this Aug 6, 2021
@alxhotel alxhotel added the bug label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants