-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
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
ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] #95581
Comments
This probably is due to an external service requesting service descriptions over the API. One service which can do that is the remote home-assistant integration, do you use that? I have the same problem, as soon as my remote instance of HA sends a request to my 'main' HA for the service descriptions, the API call generates an error and afterwards, HA freezes. This issue is (I think) due to this change #93131. This PR is merged in 2023.6.x which does also align with my observation that everything works fine on versions < 2023.6.0. @bdraco can you confirm if this is related to the change you implemented? |
Yes, I use remote home-assistant integration, and I have two hass instances connected together. I can try downgrading to a version earlier than 2023.6.0, but I'm fairly certain that's around the time when the problems started. Do you have any suggestions on what we can do to resolve this? |
I added the PR in which it changed and notified the owner of the PR if this could be related. Hope that he might have a thought. I will try to debug the issue as soon as I have time and come with code changes to fix it but can't guarantee that that will be in the upcoming days. I really want to upgrade to 2023.7 because of the new interesting features but this bug avoids that and that is a pity... |
Traveling today but will take a look at this one when I can @Wesley-Vos |
Looking at the code, the only way I can see this happening is if fetching the integration returned an exception. We currently don't log that. We could refactor this to log the exception and exclude that integration from the load The real question is why would the integration be failing to load if there are services for it registered |
#95911 will take care of that case as well as the integrations failing to load case. I can't replicate the issue from the UI, but I could see how it could happen if you were calling the apis manually. |
The problem
I am experiencing a issue, where the web interface continuously displays the message "Loading data" without fully loading the dashboard. This problem is not limited to a specific device, as multiple devices on the network are affected. The issue occurs both when accessing Home Assistant through an nginx redirect and directly via IP and port.
In shared log, the KeyError is related to the "shell_command" configuration, but it has randomly changed to other components, such as "shopping_list, input_number, climate..."
Restarting the Home Assistant service temporarily resolves the issue, although it sometimes requires multiple restarts. However, the problem resurfaces as soon as I refresh the web page, causing it to get stuck on the perpetual "Loading data" state.
Below is debug error, that appear when I try to access from any device.
I have no idea what I could try so any help would be much appreciated.
What version of Home Assistant Core has the issue?
2023.6.3
What was the last working version of Home Assistant Core?
unknown
What type of installation are you running?
Home Assistant OS
Integration causing the issue
unknown
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: