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 running mqtt-server.js #61

Closed
gadgethome opened this issue Jun 15, 2014 · 1 comment
Closed

Error running mqtt-server.js #61

gadgethome opened this issue Jun 15, 2014 · 1 comment

Comments

@gadgethome
Copy link

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
Copy link
Contributor

This issue has been resolved in our latest release.

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

2 participants