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: not part of int at:6 #44

Open
NathanHazout opened this issue Nov 30, 2015 · 2 comments
Open

Error: not part of int at:6 #44

NathanHazout opened this issue Nov 30, 2015 · 2 comments

Comments

@NathanHazout
Copy link

Very often, in the middle of a torrent download, I get:

/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/bncode/bncode.js:222
            throw new Error('not part of int at:'+pos.toString(16))
                  ^
Error: not part of int at:6
    at BdecodeSMachine.parse (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/bncode/bncode.js:222:19)
    at Bdecode.decode (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/bncode/bncode.js:322:14)
    at Object.decode (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/bncode/bncode.js:444:11)
    at null.<anonymous> (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/torrent-stream/lib/exchange-metadata.js:22:23)
    at g (events.js:199:16)
    at emit (events.js:110:17)
    at Wire._onextended (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/peer-wire-protocol/index.js:306:7)
    at onmessage (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/peer-wire-protocol/index.js:112:16)
    at Wire._write (/Users/nathanh/.npm-packages/lib/node_modules/torrent/node_modules/peer-wire-protocol/index.js:355:8)
    at doWrite (_stream_writable.js:301:12)
    at writeOrBuffer (_stream_writable.js:288:5)
@max-mapper
Copy link
Owner

hmm weird. maybe @mafintosh has an idea

@mafintosh
Copy link
Contributor

It seems this is an uncaught exception when a peer sends bad metadata when resolving a magnet link. Could you open this issue on mafintosh/torrent-stream and I'll try to fix it?

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

No branches or pull requests

3 participants