Home Assistant automatic restart for API call error?

Why it happens?
Not so often… but al least one or two times every day… sometimes even more times…
It is rare that it doesn’t happen for one entire day (but sometimes it happens)
There must be a reason for that… isn’t it?

23-08-11 08:37:07 ERROR (MainThread) [supervisor.homeassistant.api] Error on call https://172.30.32.1:8123/api/core/state:
23-08-11 08:37:08 ERROR (MainThread) [supervisor.homeassistant.api] Error on call https://172.30.32.1:8123/api/core/state:
23-08-11 08:37:08 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-08-11 08:37:14 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant

1 Like

Yes.
Can anyone help you with zero information/logs…: No.

The one listed is the log…
If there is some other logs needed pls let me know which one and how to collect…

About system info you are right … below is the system info.
Also here: if there is some more info to provide pls let know exactly which info is required…

In any case… my main concern is: is it happening only to me or is this a “known” issue that happens to many?

System Information

version core-2023.8.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.21-v7
arch armv7l
timezone Europe/Rome
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.32.1
Stage running
Available Repositories 1268
Downloaded Repositories 13
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.4
update_channel stable
supervisor_version supervisor-2023.08.1
agent_version 1.5.1
docker_version 23.0.6
disk_total 28.7 GB
disk_used 12.6 GB
healthy true
supported true
board rpi3
supervisor_api ok
version_api ok
installed_addons File editor (5.6.0), Watchdog Dev (0.0.10), SQLite Web (3.9.2), Duck DNS (1.15.0), Home Assistant Google Drive Backup (0.111.1), Glances (0.19.2), Advanced SSH & Web Terminal (15.0.6), Firefox (1.0.7), Ring-MQTT with Video Streaming (5.5.1), Mosquitto broker (6.2.1), Samba share (10.0.2), Network UPS Tools (0.12.0)
Dashboards
dashboards 11
resources 8
views 11
mode storage
Recorder
oldest_recorder_run August 1, 2023 at 11:08
current_recorder_run August 11, 2023 at 08:39
estimated_db_size 313.25 MiB
database_engine sqlite
database_version 3.41.2
Sonoff
version 3.5.2 (2ad1cd7)
cloud_online 1 / 1
local_online 1 / 1

Anyone can help?

The same thing is constantly happening to me. has anyone managed to reduce these failures?

23-09-03 08:45:09 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
23-09-03 08:45:24 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:45:30 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:45:31 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:45:39 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:45:45 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:45:45 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:46:02 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon File editor is unhealthy, restarting...
23-09-03 08:46:02 INFO (SyncWorker_10) [supervisor.docker.manager] Stopping addon_core_configurator application
23-09-03 08:46:02 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:46:07 INFO (SyncWorker_10) [supervisor.docker.manager] Cleaning addon_core_configurator application
23-09-03 08:46:07 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:46:08 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-configurator with version 5.6.0
23-09-03 08:46:16 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:46:21 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:46:21 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state:
23-09-03 08:46:24 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize

I’m having the same issue… no idea what’s going on. It’s causing system slow downs and sometimes crashes. I’m up to date running 2023.11.1.

same here…
nobody knows why it happens?

I have the same problem. Currently homeassistant is completely unusable. I also have no idea what it could be,

Same problem here. Any news?

23-11-20 19:28:01 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-20 19:28:01 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant
23-11-20 19:30:32 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-20 19:30:32 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-20 19:30:32 INFO (SyncWorker_0) [supervisor.docker.manager] Restarting homeassistant

Same here.
Sometimes the API error does not trigger a core restart

23-11-22 07:37:42 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-22 07:54:52 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
23-11-22 07:54:52 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
23-11-22 07:54:52 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
23-11-22 07:54:52 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
23-11-22 07:54:52 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
23-11-22 07:54:55 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
23-11-22 07:54:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
23-11-22 07:54:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
23-11-22 07:54:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
23-11-22 07:54:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
23-11-22 07:54:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
23-11-22 07:54:57 INFO (MainThread) [supervisor.resolution.check] System checks complete

Some other times it does

23-11-22 08:55:25 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-22 08:55:25 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-22 08:55:26 INFO (SyncWorker_7) [supervisor.docker.manager] Restarting homeassistant

+1 This is happening randomly. It just becomes unresponsive and reboots.
I thought it was because my SDCard in the RPI was dying but I just swapped to an SSD and it happened again

23-11-26 11:13:58 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-26 11:28:18 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-26 11:35:23 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-26 11:36:59 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-26 11:36:59 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-26 11:36:59 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant
23-11-26 11:37:04 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-26 11:40:16 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: 
23-11-26 11:40:45 WARNING (MainThread) [supervisor.homeassistant.websocket] Connection is closed
23-11-26 11:40:45 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-42330' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:318> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 263, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 93, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 323, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 265, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
23-11-26 11:40:45 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-42353' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:318> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 263, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 93, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 323, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 265, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
23-11-26 11:40:45 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-42354' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:318> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 263, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 93, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 323, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 265, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
23-11-26 11:40:49 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready

Running on

  • Core2023.11.3
  • Supervisor2023.11.3
  • Operating System11.1
  • Frontend20231030.2

Same here… it is a very old issue never fixed…

In which device are you guys running hass? To see if there is some correlation?
I’m running on a RPI 3B

Raspberry PI3A+

I’m also getting this API error causing a reboot apparently randomly around 1-3 times a day (that I notice). Causes consternation with the rest of the family when the lights don’t comeon in the hall, but then they do a minute later!
I’m on a RPi4(model B) which doesn’t ever seem overloaded. I’ve got an official power supply on order, but given there’s an API error before the reboot I don’t think it’s loss of/insufficient power.

I am also getting this API error, every couple of hours using on Synology VM with HA OS

  • Core 2023.11.3
  • Supervisor 2023.11.6
  • Operating System 11.2
  • Frontend 20231030.2
Logs
Search logs
Supervisor
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 323, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 265, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
23-12-05 18:58:39 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-12-05 18:58:45 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-12-05 18:58:45 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-12-05 18:58:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-12-05 18:58:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository
23-12-05 18:58:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-12-05 18:58:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-12-05 18:58:48 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-12-05 18:58:49 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
23-12-05 18:58:50 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-12-05 18:58:50 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-12-05 19:00:21 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-12-05 19:00:21 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
23-12-05 19:00:21 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
23-12-05 19:00:22 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
23-12-05 19:00:24 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
23-12-05 19:05:29 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-12-05 19:08:07 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Cannot proxy websocket message of unsupported type: 257
23-12-05 19:08:07 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
23-12-05 19:08:16 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
23-12-05 19:08:16 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
23-12-05 19:08:16 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-12-05 19:09:19 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-12-05 19:10:03 INFO (MainThread) [supervisor.host.info] Updating local host information
23-12-05 19:10:05 INFO (MainThread) [supervisor.host.services] Updating service information
23-12-05 19:10:05 INFO (MainThread) [supervisor.host.network] Updating local network information
23-12-05 19:10:05 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-12-05 19:10:05 INFO (MainThread) [supervisor.host.manager] Host information reload completed
23-12-05 19:10:10 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Cannot proxy websocket message of unsupported type: 257
23-12-05 19:10:10 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
23-12-05 19:10:18 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
23-12-05 19:10:18 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
23-12-05 19:10:18 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-12-05 19:15:25 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Cannot proxy websocket message of unsupported type: 257
23-12-05 19:15:25 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
23-12-05 19:15:32 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
23-12-05 19:15:32 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
23-12-05 19:15:32 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-12-05 19:28:23 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant
23-12-05 19:34:24 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-12-05 19:34:24 INFO (SyncWorker_1) [supervisor.docker.manager] Restarting homeassistant
23-12-05 19:34:27 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Cannot proxy websocket message of unsupported type: 8
23-12-05 19:34:27 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
23-12-05 19:34:27 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-162036' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:318> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 263, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 93, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 323, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 265, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
23-12-05 19:37:54 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-12-05 19:37:59 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
23-12-05 19:38:00 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-12-05 19:38:00 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-12-05 19:38:02 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-12-05 19:38:02 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository
23-12-05 19:38:02 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-12-05 19:38:02 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-12-05 19:38:02 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-12-05 19:38:04 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-12-05 19:38:04 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-12-05 19:39:23 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-12-05 19:39:46 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
23-12-05 19:39:46 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
23-12-05 19:39:55 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
23-12-05 19:39:55 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-12-05 19:39:55 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
Home Assistant has started!

Same type or errors/behavior here…
The worst thing is that before (few months ago) it was happening 2/3 times every day… but now it happens much more frequently… even 10 times or more evey day…

I can’t believe that developers cannot realize why it happens… they should have tons of logs to analyze to understand and fix the issue… isn’t it?

In my case problem is solved without intention.
Actually I decided to replace my main router and didn’t make any DHCP config / reservations on new one.
That way my HA mini PC got completely new IP address and issue disappeared. For already two weeks I don’t have DHCP reservation for HA and no restarts for API call error.

You may try to add different reservation or leave it for DHCP to assign address automatically

Whaaaattttt?
The Fixed IP address (with Reservation) was the cause of the issue??
I don’t it’s possibile as it makes no sense…
There must be some other cause

And change IP for a Sever (HA is a server) is never a good idea…