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

ReferenceError: concat is not defined #58

Closed
jirib opened this issue May 17, 2014 · 2 comments
Closed

ReferenceError: concat is not defined #58

jirib opened this issue May 17, 2014 · 2 comments

Comments

@jirib
Copy link

jirib commented May 17, 2014

Hi,
I'm trying webtorrent cli on OpenBSD and it does not work. Any idea?
Thx!

$ node bin/cmd.js 'http://www.bt-chat.com/download1.php?id=124137&type=torrent' --vlc     

/home/jirib/tmp/webtorrent/index.js:53
      res.pipe(concat(function (torrent) {
               ^
ReferenceError: concat is not defined
    at ClientRequest.<anonymous> (/home/jirib/tmp/webtorrent/index.js:53:16)
    at ClientRequest.g (events.js:180:16)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1688:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
    at Socket.socketOnData [as ondata] (http.js:1583:20)
    at TCP.onread (net.js:525:27)

jirib:/home/jirib/tmp/webtorrent
$ node bin/cmd.js -v                                                                  
0.2.6
$ node -v                                                                                                                                                            
v0.10.24
$ sysctl kern.version                                                                                                                                                
kern.version=OpenBSD 5.5-current (GENERIC.MP) #126: Mon May 12 22:40:04 MDT 2014
    todd@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
@transitive-bullshit
Copy link
Member

This is definitely a bug; as a temporary workaround, just download the .torrent file and use that instead of the torrent's URL.

Also, stream to vlc is not working on master HEAD, but it is working in the latest pull request.

@feross feross closed this as completed in eaa7a89 May 18, 2014
@feross
Copy link
Member

feross commented May 18, 2014

This is now fixed in webtorrent@0.2.9

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
bricewge pushed a commit to bricewge/webtorrent that referenced this issue May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants