WebSocket API connection is closed

Hello everybody,

I’m having a problem with my HA connection to AppDaemon. The websocket session cuts out almost every minute with this message:

2023-08-10 21:14:07.717520 WARNING HASS: Unexpected result from Home Assistant, id = 9
2023-08-10 21:14:07.717709 WARNING HASS: {'id': 9, 'type': 'result', 'success': False, 'error': {'code': 'unknown_error', 'message': 'Invalid JSON in response'}}
2023-08-10 21:14:07.718049 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds

This therefore reloads AppDaemon every minute by no longer monitoring callbacks during this time, which is a bit annoying.
By digging a little I saw this error in the supervisor logs:

23-08-10 21:15:05 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-08-10 21:15:06 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 257:None is not WSMsgType.TEXT
23-08-10 21:15:06 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed

I searched for a while to find a solution but I can’t find anything, I even completely reinstalled AppDaemon but even with a clean configuration without an application, it doesn’t work.

Thank you in advance for your help.

Hello,

I’m the same issue

Do you have solutions?

Thank you in advance for your help.