LordMike / MBW.BlueRiiot2MQTT

Utility to map between Blue Riiots pool API, and Home Assistant MQTT
47 stars 2 forks source link

Response status code does not indicate success: 500 (Internal Server Error) #83

Closed bmgmo-iscteiulpt closed 1 year ago

bmgmo-iscteiulpt commented 1 year ago

Hello everyone!

After setting up the connection on a docker-compose file and starting the docker itself, it does not get measurements. I put it in verbose mode, and the only thing I get are pings and from time to time this message :

System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error)blueriiot2mqtt_1 | [2023-08-21 21:44:40+00:00 VRB] [MqttNet.MqttChannelAdapter]

Does anyone know what might be happening?

Thank you!

LordMike commented 1 year ago

That's odd - Blueriiot does have downtime now and then.. Is this still happening, and are your credentials correct?

bmgmo-iscteiulpt commented 1 year ago

Yes, it still happens. The credentials are from the android app correct? I have tried both with the app credentials and the website credentials but still nothing

LordMike commented 1 year ago

If you set the variable Logging__MinimumLevel__Override__System.Net.Http.HttpClient.blueriiot to Verbose or Information - you should get more details.

bmgmo-iscteiulpt commented 1 year ago

Well the previous message disappeared but now Im receiving messages on MQTT with just a payload "OK" around twice per second, and nothing related to the sensors data image

bmgmo-iscteiulpt commented 1 year ago

I have pulled the docker-compose image again and this is what happens again : image

LordMike commented 1 year ago

Ok - so we're inside the "LoginWithUsernamePassword", which means that BlueRiiots servers are refusing your username and password (rather, they're encountering something unexpected). I'm thinking that your credentials have something unexpected in them.

Could you try changing your password to something less complex, if you f.ex. have symbols.

Could you also show your docker-compose configuration?

bmgmo-iscteiulpt commented 1 year ago

It worked! I guess those auto-generated passwords are too complicated xD

Thank you very much!