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

Crash on DHT put #66

Closed
cjb opened this issue May 29, 2015 · 1 comment · Fixed by #73
Closed

Crash on DHT put #66

cjb opened this issue May 29, 2015 · 1 comment · Fixed by #73
Labels

Comments

@cjb
Copy link
Contributor

cjb commented May 29, 2015

(Seen on @substack's dht-store branch, but filing here.)

  bittorrent-dht [2f01a3c] put from 98.100.36.218:6881 +1ms

/home/cjb/gittorrent/node_modules/bittorrent-dht/node_modules/k-bucket/index.js:225
    if ((id.length <= bytesDescribedByBitIndex)
           ^
TypeError: Cannot read property 'length' of undefined
    at KBucket.determineBucket (/home/cjb/gittorrent/node_modules/bittorrent-dht/node_modules/k-bucket/index.js:225:12)
    at KBucket.get (/home/cjb/gittorrent/node_modules/bittorrent-dht/node_modules/k-bucket/index.js:258:18)
    at DHT._onPut (/home/cjb/gittorrent/node_modules/bittorrent-dht/client.js:486:27)
    at DHT._onQuery (/home/cjb/gittorrent/node_modules/bittorrent-dht/client.js:1052:30)
    at DHT._onData (/home/cjb/gittorrent/node_modules/bittorrent-dht/client.js:1036:10)
    at Socket.EventEmitter.emit (events.js:98:17)
    at UDP.onMessage (dgram.js:440:8)

I don't control this node, so have no idea what they were doing :)

@mafintosh
Copy link
Contributor

should be fixed in 4.0.1

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

Successfully merging a pull request may close this issue.

3 participants