I have started getting these messages
2017-11-11 16:35:59 ERROR (MainThread) [homeassistant.components.websocket_api] WS 140629041736392: Client exceeded max pending messages [2]: 512
Any ideas ?
Thanks
I have started getting these messages
2017-11-11 16:35:59 ERROR (MainThread) [homeassistant.components.websocket_api] WS 140629041736392: Client exceeded max pending messages [2]: 512
Any ideas ?
Thanks
Same here, started ~ 0.58
Iām getting it too but seemingly on when I use an automation to turn a few lights on based on motion being detected by a sensorā¦
Same here:
2017-11-30 17:19:06 ERROR (MainThread) [homeassistant.components.websocket_api] WS 1709437968: Client exceeded max pending messages [2]: 512
2017-11-30 17:19:06 ERROR (MainThread) [homeassistant.components.websocket_api] WS 1709437968: Client exceeded max pending messages [2]: 512
2017-11-30 17:19:06 ERROR (MainThread) [homeassistant.components.websocket_api] WS 1709437968: Client exceeded max pending messages [2]: 512
2017-11-30 17:19:06 ERROR (MainThread) [homeassistant.components.websocket_api] WS 1709437968: Client exceeded max pending messages [2]: 512
Started with 0.58.1 also. No other modifications made to automations or scripts, just the update. Strange.
Iām getting this too.
[homeassistant.components.websocket_api] WS 1844349200: Client exceeded max pending messages [2]: 512
Same here on version 0.63. First time I see it !
Having the same error. Opened up an issue on github. Please add your info: https://github.com/home-assistant/home-assistant/issues/12624
I get this when I reload automations from the āconfig/coreā page.
Add me to the list.
This error:
ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139906340336304] Client exceeded max pending messages [2]: 512
Is preventing me from reloading automations. However a config check passes and HA reloads without error.
Iāll join the party. Seeing this when nodered is loaded and I reload automations. If I turn NR off, no errors.
I removed all statistics sensors and replaced with filter sensors. This fixed this problem for me.
I had same error and I wonder if it had something to do with statistics sensors and (in my case) Appdaemon integration.
Iām seeing these errors as well. The latest is (and as usual non-descript):
2020-01-15 07:10:35 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2908314800] Client exceeded max pending messages [2]: 512
2020-01-15 07:10:35 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.2908314800] Connection closed by client
2020-01-15 07:26:52 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2887782256] Client exceeded max pending messages [2]: 512
2020-01-15 07:26:52 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.2887782256] Connection closed by client
2020-01-15 07:55:25 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2885491728] Client exceeded max pending messages [2]: 512
Interestingly, right before this, I had a roku error:
2020-01-15 07:05:52 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.2922440624] Connection closed by client
2020-01-15 07:09:51 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 355, in post
domain, service, data, True, self.context(request)
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 336, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 358, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 221, in select_source
channel.launch()
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 95, in launch
self.roku.launch(self)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 304, in launch
return self._post('/launch/%s' % app.id, params=params)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 210, in _post
return self._call('POST', path, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 227, in _call
raise RokuException(resp.content)
roku.core.RokuException: b''
I included the log entry at the top because it might have something to do with the issue. But it happened a few minutes earlier, so probably not.
The Roku script is called from appdaemon and there is a corresponding error in the appdaemon error log:
2020-01-15 07:09:51.640246 WARNING AppDaemon: ------------------------------------------------------------
2020-01-15 07:09:51.640697 WARNING AppDaemon: Unexpected error in worker for App util_media:
2020-01-15 07:09:51.641134 WARNING AppDaemon: Worker Ags: {'name': 'util_media', 'id': UUID('fd3118e6-d9b3-4c7b-9ca8-cfdbf0c26aa6'), 'type': 'attr', 'function': <bound method util_media.cb_media_turn_on of <util_media.util_media object at 0xb49bb178>>, 'attribute': 'state', 'entity': 'media_player.bedroom', 'new_state': 'home', 'old_state': 'idle', 'kwargs': {'attribute': 'state', 'new': 'home', 'old': 'idle', 'attached_tv': 'switch.mbr_tv', 'channel_default': 'Tablo TV', 'remote_entity': 'remote.bedroom', 'remote_commands': ['right', 'down', 'down', 'down', 'down', 'down', 'down', 'select'], 'remote_delay': 6, 'override_channel': False, 'turn_on_entry': 'turn_on_2', 'handle': UUID('459ac398-a35c-4d75-8bb4-eeea2f7e0385')}}
2020-01-15 07:09:51.641415 WARNING AppDaemon: ------------------------------------------------------------
2020-01-15 07:09:51.643003 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/appdaemon.py", line 594, in worker
funcref(entity, attr, old_state, new_state,
File "/config/appdaemon/apps/python files/util_media.py", line 197, in cb_media_turn_on
self.worker_turn_on_media(roku_entity=entity,
File "/config/appdaemon/apps/python files/util_media.py", line 347, in worker_turn_on_media
self.call_service("media_player/select_source", entity_id=roku_entity, source=to_channel)
File "/usr/lib/python3.8/site-packages/appdaemon/plugins/hass/hassapi.py", line 22, in func_wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/appdaemon/plugins/hass/hassapi.py", line 522, in call_service
r.raise_for_status()
File "/usr/lib/python3.8/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://hassio/homeassistant/api/services/media_player/select_source
2020-01-15 07:09:51.643315 WARNING AppDaemon: ------------------------------------------------------------
Iām planning to rewrite this into a standard automation to see if that fixes anything.
Anyone see anything that can point to the issue? Is there any way to track down the exact http connection from the number at the end of error?