jinroh / kadoh

The Kademlia DHT in Javascript for Node.js and Browsers
http://jinroh.github.com/kadoh
Other
242 stars 31 forks source link

TypeError in Chrome 28 #62

Closed dysbulic closed 11 years ago

dysbulic commented 11 years ago

I go through the following steps to get KadOH up and running on Ubuntu 12.04:

Then I click the "Connect" button which changes to "Connected". Next I click "Join" which goes to "Joining..." and in the console I get Uncaught TypeError: Cannot call method 'size' of undefined.

The offending statement is: iterfind._currentReduceResult.size(). I get an error at the same place in Firefox 25.

alexstrat commented 11 years ago

Indeed 1ec243d38fe38ea50d2bfd42dc760b7c8e5f2e69 introduced that bug, I just corrected it.

BTW, you should use npm install . that installs modules with predefined versions (defined in package.json) rather than npm install blah blah that installs latest versions (no warranty to work at first glance).

BTW2, I wrote https://gist.github.com/alexstrat/4069162 once that explains how to launch the UDP DHT like you tried.