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

Server mobius error #13

Open
kimoudev opened this issue Mar 2, 2018 · 4 comments
Open

Server mobius error #13

kimoudev opened this issue Mar 2, 2018 · 4 comments

Comments

@kimoudev
Copy link

kimoudev commented Mar 2, 2018

Hi,
I have this error.
I also have mosquitto authenticate enable.
How to set username and password MQTT in app? Please

events.js:160
      throw er; // Unhandled 'error' event
 Error: Connection refused: Not authorized
    at MqttClient._handleConnack (/var/www/Mobius/node_modules/mqtt/lib/client.js:879:15)
    at MqttClient._handlePacket (/var/www/Mobius/node_modules/mqtt/lib/client.js:318:12)
    at work (/var/Mobius/node_modules/mqtt/lib/client.js:260:12)
    at Writable.writable._write (/var/www/Mobius/node_modules/mqtt/lib/client.js:270:5)
    at doWrite (/var/www/Mobius/node_modules/readable-stream/lib/_stream_writable.js:418:64)
    at writeOrBuffer (/var/wwwMobius/node_modules/readable-stream/lib/_stream_writable.js:407:5)
    at Writable.write (/var/www/Mobius/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at Socket.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
@UniverseHan
Copy link

UniverseHan commented Mar 16, 2018

How about this?

user:pass@host

@kimoudev
Copy link
Author

kimoudev commented Mar 16, 2018

Thanks @UniverseHan

@UniverseHan
Copy link

Was it helped? @kimoudev

@rkarma69
Copy link

Hi Guys
I have the same one. how to and where to set it up?
I could not find it in client.js.
Thanks in advance.

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