klejejs / ha-thermia-heat-pump-integration

Thermia Heat Pump Integration for Home Assistant
GNU General Public License v3.0
30 stars 7 forks source link

Reauthentication request failed with previous refresh token #41

Closed oskari closed 1 year ago

oskari commented 1 year ago

I've been running this integration fine for few days but today I happened to get this error when trying to change target room temperature:

This error originated from a custom integration.

Logger: ThermiaOnlineAPI.api.ThermiaAPI
Source: custom_components/thermia/__init__.py:91
Integration: Thermia Heat Pump (documentation, issues)
First occurred: 21:36:11 (309 occurrences)
Last logged: 22:27:44

Reauthentication request failed with previous refresh token. Status: 400, Response: {"error":"invalid_grant","error_description":"AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1672518424, Grant issued time: 1672511769, Grant expiration time: 1672511624\r\nCorrelation ID: 3ece6f47-bc65-4f8c-a0d3-7fa08f538a93\r\nTimestamp: 2022-12-31 20:27:04Z\r\n"}
Reauthentication request failed with previous refresh token. Status: 400, Response: {"error":"invalid_grant","error_description":"AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1672518434, Grant issued time: 1672511769, Grant expiration time: 1672511624\r\nCorrelation ID: 87b58ffc-25ad-4400-a727-a2cfa618862b\r\nTimestamp: 2022-12-31 20:27:14Z\r\n"}
Reauthentication request failed with previous refresh token. Status: 400, Response: {"error":"invalid_grant","error_description":"AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1672518444, Grant issued time: 1672511769, Grant expiration time: 1672511624\r\nCorrelation ID: 0ae6f096-b31b-451f-843c-4666cbe751d8\r\nTimestamp: 2022-12-31 20:27:24Z\r\n"}
Reauthentication request failed with previous refresh token. Status: 400, Response: {"error":"invalid_grant","error_description":"AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1672518454, Grant issued time: 1672511769, Grant expiration time: 1672511624\r\nCorrelation ID: 9fbf3d43-f451-498b-bd03-dade1cbf136f\r\nTimestamp: 2022-12-31 20:27:34Z\r\n"}
Reauthentication request failed with previous refresh token. Status: 400, Response: {"error":"invalid_grant","error_description":"AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1672518464, Grant issued time: 1672511769, Grant expiration time: 1672511624\r\nCorrelation ID: 9f618557-456c-42ec-8189-3403d35b487e\r\nTimestamp: 2022-12-31 20:27:44Z\r\n"}

Reloading the integration helped, but that's more of an band-aid.

klejejs commented 1 year ago

These error messages were not supposed to be errors. The issue is related to #33.

I have released a new version 2.17, please install it, and let's keep track of the problem in the related issue.