-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[measure] Ability to recover from 500 errors #3028
Comments
You should be able to continue at the point it crashed when you have half CSV. Will have a look how to improve retry mechanism when HA API is temporarily unavailable. |
By default the RESUME var is not set in the env. I uncommented it out and resume worked. However still having timeouts so having to keep restarting the script. |
Ok so I figured out why I'm getting these random 500 errors. I checked the Home Assistant main log and see.
|
Actually it looks like the issue is really the Hubspace integration. I keep getting 403 from their web service, my guess is rate limiting maybe occurring. |
Yes the "error" you showed from log is not really an error but just a deprecation notice. Shouldn't break anything, and not be the cause of 500 error. |
You could try raising the |
Well majority of my issues were during the color_temp. Once I got into the HsVaration all my 403 errors resolved. |
System Health details
Measure script issue
Checklist
Describe the issue
I've been recently contributing to powercalc and I have been measuring some of my devices using the built in script.
However one of my biggest grips is when there is a 500 error presented during the home assistant api call there is no graceful error handling. Without this error handling or attempt to retry the entire measure session is wasted on a temporary error that is quickly gone away.
Reproduction steps
Debug logs
Diagnostics dump or YAML config
No response
The text was updated successfully, but these errors were encountered: