AntoineGS / teams-status-rs

47 stars 0 forks source link

Error in logs related to decoding the response (HA API) #21

Closed AntoineGS closed 2 months ago

AntoineGS commented 2 months ago

If you use the templates from the README you might see lines like this the log file:

2024-04-10T16:31:40.473213400-04:00  ERROR teams_status::home_assistant::api - Unable to send the request: error decoding response body: invalid type: null, expected a string at line 1 column 375

This is due to a field being returned as null by HA's API which is not expected to be null as per the crate used. PR on the crate for reference to rebuild if approved: https://github.com/StefanBossbaly/home-assistant-rest/pull/7

Note: The states will be updated regardless, as it is the response that cannot be read, so this is not a problem to use the application.