gaetancollaud / digitalstrom-mqtt

Bridge between digitalSTROM and MQTT
GNU Affero General Public License v3.0
23 stars 4 forks source link

"not logged in" after MQTT connection lost #8

Closed dylancollaud closed 7 months ago

dylancollaud commented 3 years ago

I saw in the log this error :

2021-04-14T19:06:06Z INF Error error="Error with digitalstrom API: not logged in" | stdout

Printed 100 times per second at least..

The DSS Server has been updated last week and I thing this is linked. This app loose the credential to connect to the API. The docker was buggy and the log did not display in Synology. I restarted the docker and the message disapeared.

Maybe in this case, don't try to log as this fast and maybe retry to get the credential.

gaetancollaud commented 3 years ago

Yeah it's true that I don't detect if the token is outdated... I just rely on the fact that I do a pooling every 30sec which extends the token indefinitely...

Things to do:

gaetancollaud commented 3 years ago

I got the error also. But it's not related to digitalSTROM, it's related to MQTT... When the MQTT server restarts I can also see those lines.

gaetancollaud commented 7 months ago

Fixed by af62c786036b6a5b3c34de6668ea8e8c3575aa87