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

Uncaught TypeError: must start with number, buffer, array or string #691

Closed
ajainvivek opened this issue Mar 24, 2016 · 8 comments
Closed

Uncaught TypeError: must start with number, buffer, array or string #691

ajainvivek opened this issue Mar 24, 2016 · 8 comments

Comments

@ajainvivek
Copy link
Contributor

@ajainvivek ajainvivek commented Mar 24, 2016

The error started appearing recently while seeding and downloading a file. Its not blocking anything as such but can I get to know what I am doing wrong.

Thanks,

@rom1504

This comment has been minimized.

Copy link
Member

@rom1504 rom1504 commented Mar 24, 2016

Can you paste the rest of the error ? (The stack trace containing the lines where it happened and all)

@ajainvivek

This comment has been minimized.

Copy link
Contributor Author

@ajainvivek ajainvivek commented Mar 24, 2016

I am using minified version of webtorrent

c   @   webtorrent.min.js:formatted:1
i   @   webtorrent.min.js:formatted:1
n.binaryToHex   @   webtorrent.min.js:formatted:1
r._onSocketData @   webtorrent.min.js:formatted:1
r.emit  @   webtorrent.min.js:formatted:1
i   @   webtorrent.min.js:formatted:1
o.push  @   webtorrent.min.js:formatted:1
r._onMessage    @   webtorrent.min.js:formatted:1

Hope this trace makes some sense.

parse-torrent build is failing is it do something with that ???


@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 24, 2016

@ajainvivek

parse-torrent build is failing is it do something with that ???

No, that's a false positive.

Can you post the code you wrote?

@ajainvivek

This comment has been minimized.

Copy link
Contributor Author

@ajainvivek ajainvivek commented Mar 24, 2016

Snippet of code:

 return new RSVP.Promise(function (resolve, reject) {
            client.add("magnet:?xt=urn:btih:" + magnetURI, function (torrent) {
                // Got torrent metadata!
                console.log('Client is downloading:', torrent.infoHash)
                callback(torrent);
                resolve(torrent.files);
            });
        });

File: https://github.com/ajainvivek/P2PDrop/blob/master/app/services/webtorrent.js
App: http://app.p2pdrop.com/

I am unable to get complete stack trace as the error seems to starts from webtorrent.min.js

@ajainvivek

This comment has been minimized.

Copy link
Contributor Author

@ajainvivek ajainvivek commented Mar 25, 2016

Any updates @feross ?

@ajainvivek

This comment has been minimized.

Copy link
Contributor Author

@ajainvivek ajainvivek commented Mar 27, 2016

Issue seems to be not happening after updating webtorrent.min.js.

Thanks

@ajainvivek ajainvivek closed this Mar 27, 2016
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 27, 2016

@ajainvivek Glad you got it figured out! When your app is ready, you should send a PR, or open an issue to add it to the list of WebTorrent users.

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

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