Timeout for AppDaemon after Starting HA

Hello,

My Home Assistant setup is quite extensive. When HA finishes starting up, the AppDaemon log looks like this:

2026-02-07 10:01:39.358006 INFO HASS: Attempting reconnection in 5.0s
2026-02-07 10:01:44.444374 ERROR HASS: 502, message='Invalid response status', url='http://supervisor/core/api/websocket'
2026-02-07 10:01:44.446624 INFO HASS: Attempting reconnection in 5.0s
2026-02-07 10:01:49.528362 ERROR HASS: 502, message='Invalid response status', url='http://supervisor/core/api/websocket'
2026-02-07 10:01:49.529554 INFO HASS: Attempting reconnection in 5.0s
2026-02-07 10:01:54.618613 ERROR HASS: 502, message='Invalid response status', url='http://supervisor/core/api/websocket'
2026-02-07 10:01:54.619821 INFO HASS: Attempting reconnection in 5.0s
2026-02-07 10:02:00.808619 ERROR HASS: 502, message='Invalid response status', url='http://supervisor/core/api/websocket'
2026-02-07 10:02:00.809803 INFO HASS: Attempting reconnection in 5.0s
2026-02-07 10:02:02.971942 WARNING AppDaemon: Excessive time spent in utility loop: 2.0s, 2.0s in check_app_updates(), 3.160ms in other
2026-02-07 10:02:13.568426 WARNING AppDaemon: Excessive time spent in utility loop: 3.7s, 3.6s in check_app_updates(), 16.461ms in other
2026-02-07 10:02:19.645277 INFO HASS: Connected to Home Assistant 2026.2.1 with aiohttp websocket
2026-02-07 10:02:19.661669 INFO HASS: Authenticated to Home Assistant 2026.2.1
2026-02-07 10:02:23.134877 WARNING AppDaemon: Excessive time spent in utility loop: 2.5s, 2.5s in check_app_updates(), 4.708ms in other
2026-02-07 10:02:30.055904 WARNING HASS: Timed out [0:00:10] waiting for request: {'type': 'subscribe_events', 'id': 1}
2026-02-07 10:02:30.080893 ERROR Error: =====  Unhandled exception in post_auth  ==================================
2026-02-07 10:02:30.081901 ERROR Error: HAEventsSubError: -1: Unknown response from subscribe_events: {'success': False, 'ad_status': 'TIMEOUT', 'ad_duration': 10.39728063903749}
2026-02-07 10:02:30.090195 ERROR Error: ===========================================================================
2026-02-07 10:02:33.170865 WARNING AppDaemon: Excessive time spent in utility loop: 2.1s, 2.1s in check_app_updates(), 4.822ms in other
2026-02-07 10:02:43.170693 WARNING AppDaemon: Excessive time spent in utility loop: 2.2s, 2.2s in check_app_updates(), 2.176ms in other

What can I do to fix this?
What’s causing the problem?

Thanks