mopidy-mqtt icon indicating copy to clipboard operation
mopidy-mqtt copied to clipboard

MQTT Default User and Password

Open MrRemmers opened this issue 6 years ago • 2 comments

on an initial setup, I was getting an error code 5 on connection attempts. I found that a username of 'username' and password of 'password' was being used. Even though those lines were never on my configuration.

I removed these lines: if self.config['username'] and self.config['password']: self.mqttClient.username_pw_set(self.config['username'], password=self.config['password']) and the necessary edits to setup.py and ext.conf

That got it working for me. It's my assumption that mopidy requires a default value for all configurable variables, I didn't happen to have a username and password on my MQTT server and providing one won't allow it to connect.

MrRemmers avatar Dec 13 '18 02:12 MrRemmers

Thanks for reporting. Strange. No idea how to fix this. I leave the ticket open though.

magcode avatar Jan 13 '19 20:01 magcode

I've encountered this issue as well. Wouldn't it be a solution to remove the default values?

BerendWouters avatar Jan 07 '20 22:01 BerendWouters