-
Notifications
You must be signed in to change notification settings - Fork 27
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
API status code sensor stuck at "Internal Server Error" #121
Comments
i saw this issue also recently, but need to find the reason why (maybe 2fa issue or bad mobile signal) |
I think changing this line from BASE_URL to BASE_URL_V2 might fix it: |
you should be right. because the 2 api calls has been changed to v2 can you open a MR? then i can merge them to dev to test |
I have ran my fix over night without seeing the internal server error, so looks promising. |
Well, it was not enough, there is one more place that needs to be fixed: |
@leeyuentuen what is your idea about the separate lastest_call_code (i.e. lastest_call_code and lastest_call_code_2). The current setup makes fixing this completely very complex since we do not know if a v1 or v2 API caused the error in the component code, so I would have to somehow convey that information over. |
the idea of v1 en v2 is that there are 2 different api call. normally if v1 failed, then the authentication also failed, so the v2 will also failed. but if only v2 failed, the v1 should keep working fyi: the statuscode is just an information. it doesn't changes the other entities value, just only know the the other entity is getting information |
i'm not sure, but the more issue with the api, could be related with 2FA of polestar. |
I think what we are seeing is just random fails due to server being too busy or packet loss or whatever. But again, do you feel it is important to keep the call codes separate? |
i use that call code more for debugging and see if there are issue due make that call. you can always created a MR and if improve it could always been merged |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Now and then I see the API status code sensor displaying status "Internal Server Error".
The other sensors seem to keep updating in this state, so it sort of seems like it is only the API status code sensor that is affected.
Restarting the integration removes the problem usually.
Not sure what to look for in the log files, but if you have any ideas what to search for...
The text was updated successfully, but these errors were encountered: