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

Cannot read property 'emit' of null #999

Open
davidgatti opened this issue Dec 17, 2016 · 1 comment
Open

Cannot read property 'emit' of null #999

davidgatti opened this issue Dec 17, 2016 · 1 comment
Labels

Comments

@davidgatti
Copy link

@davidgatti davidgatti commented Dec 17, 2016

Just so you know :) while downloading I got the following:

/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/webtorrent/lib/torrent.js:927
    self.client.emit('upload', uploaded)
               ^
TypeError: Cannot read property 'emit' of null
    at Wire.<anonymous> (/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/webtorrent/lib/torrent.js:927:16)
    at emitOne (events.js:96:13)
    at Wire.emit (events.js:188:7)
    at Wire.piece (/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/bittorrent-protocol/index.js:337:8)
    at respond (/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/bittorrent-protocol/index.js:498:10)
    at /Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/fs-chunk-store/index.js:200:7
    at end (/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/run-parallel/index.js:16:15)
    at done (/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/run-parallel/index.js:20:10)
    at each (/Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/run-parallel/index.js:26:7)
    at /Users/davidgatti/Documents/GitHub/MrWhite/How-to-Stream-Torrents-in-NodeJS/node_modules/run-parallel/index.js:41:37

This happened after playing 2 weeks with this module, meaning it isn't frequent, but it did happen :)

  • WebTorrent version: 0.98.0
  • Node.js version: v6.4.0
  • Browser name/version (if using WebTorrent in the browser): Using NodeJS module.
@feross feross added the bug label Jan 18, 2017
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 18, 2017

I've seen this before too.

@feross feross added the accepted label May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.