octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
816 stars 182 forks source link

Error running mqtt-server.js #61

Closed gadgethome closed 10 years ago

gadgethome commented 10 years ago

Hi,

Tried running the broker as node mqtt-server.js

and keeps coming up with the following error. Any idea how to fix this?

Thanks


Failed to load c++ bson extension, using pure JS version
{"name":"mosca","hostname":"raspberrypi","pid":21357,"level":30,"port":1883,"msg":"server started","time":"2014-06-15T11:26:56.813Z","v":0}
Skynet MQTT server started on port 3000
TypeError: Cannot call method 'toString' of undefined
    at EventEmitter.authenticate (/home/pi/skynet/mqtt-server.js:43:82)
    at Client.handleConnect (/home/pi/skynet/node_modules/mosca/lib/client.js:292:15)
    at MqttServerClient.<anonymous> (/home/pi/skynet/node_modules/mosca/lib/client.js:142:10)
    at MqttServerClient.g (events.js:180:16)
    at MqttServerClient.EventEmitter.emit (events.js:95:17)
    at MqttServerClient.Connection._write (/home/pi/skynet/node_modules/mqtt/lib/connection.js:187:12)
    at doWrite (_stream_writable.js:221:10)
    at writeOrBuffer (_stream_writable.js:211:5)
    at MqttServerClient.Writable.write (_stream_writable.js:180:11)
    at write (_stream_readable.js:583:24)
chrismatthieu commented 10 years ago

This issue has been resolved in our latest release.