Mobius icon indicating copy to clipboard operation
Mobius copied to clipboard

Server mobius error

Open kimoudev opened this issue 6 years ago • 4 comments

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)

kimoudev avatar Mar 02 '18 22:03 kimoudev

How about this?

user:pass@host

UniverseHan avatar Mar 16 '18 01:03 UniverseHan

Thanks @UniverseHan

kimoudev avatar Mar 16 '18 10:03 kimoudev

Was it helped? @kimoudev

UniverseHan avatar Mar 16 '18 12:03 UniverseHan

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.

rkarma69 avatar Feb 16 '19 23:02 rkarma69