Core: mobile_app generated webhook error

Created on 15 Dec 2019  路  26Comments  路  Source: home-assistant/core

Home Assistant release with the issue:

0.103.0

Last working Home Assistant release (if known):
0.102.3

Operating environment (Hass.io/Docker/Windows/etc.):

arch | armv7l
-- | --
dev | false
docker | true
hassio | false
os_name | Linux
python_version | 3.7.5
timezone | America/Los_Angeles
version | 0.103.0
virtualenv | false

Integration:

https://www.home-assistant.io/integrations/mobile_app/

Description of problem:
After updating to 0.103.0 I checked the logs and found that there was a webhook error that used the same ID as the one for my mobile_app device. This has showed up once in the logs per restart and happens about 18 hours after restart (I has happened twice).

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

mobile_app:

Traceback (if applicable):

2019-12-12 19:47:25 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook ****webhook*that*matches*.storage/mobile_app*device*6c9
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 275, in handle_webhook
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 137, in async_save
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 198, in _async_handle_write_data
    self._write_data, self.path, data
concurrent.futures._base.CancelledError

Additional information:

mobile_app stale

Most helpful comment

Pascal has some thoughts. It's probably related to the client breaking the connection while sensor states are being saved. Work should be done to mobile_app to migrate it to using built in restore state.

Can you all react to this comment with what app you're using? :thumbsup: for Home Assistant Companion for iOS, 馃槃 for Home Assistant Companion for Android, 馃殌 for other. If other, leave a comment with the app name.

All 26 comments

Hey there @robbiet480, mind taking a look at this issue as its been labeled with a integration (mobile_app) you are listed as a codeowner for? Thanks!

Any updates on this? I have the same error

Same error here...

Ye, tha same in my log too

@ZetaPhoenix What is the actual log text at ****webhook*that*matches*.storage/mobile_app*device*6c9

2020-02-25 00:35:40 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook c154e994529b5e8046983688cde2bfba6237cccf85e2adabe71ebdd40a73952a
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 181, in handle_webhook
    return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 126, in validate_and_run
    return await func(hass, config_entry, data)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 406, in webhook_update_sensor_states
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 136, in async_save
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 197, in _async_handle_write_data
    self._write_data, self.path, data
concurrent.futures._base.CancelledError

Also had a new error show up:

2020-02-26 12:19:40 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook c154e994529b5e8046983688cde2bfba6237cccf85e2adabe71ebdd40a73952a
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 143, in handle_webhook
    req_data = await request.json()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 583, in json
    body = await self.text()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 577, in text
    bytes_body = await self.read()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 561, in read
    chunk = await self._payload.readany()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 380, in readany
    await self._wait('readany')
  File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 298, in _wait
    await waiter
concurrent.futures._base.CancelledError
2020-02-26 12:19:40 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook c154e994529b5e8046983688cde2bfba6237cccf85e2adabe71ebdd40a73952a
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 143, in handle_webhook
    req_data = await request.json()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 583, in json
    body = await self.text()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 577, in text
    bytes_body = await self.read()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_request.py", line 561, in read
    chunk = await self._payload.readany()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 380, in readany
    await self._wait('readany')
  File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 298, in _wait
    await waiter
concurrent.futures._base.CancelledError

Pascal has some thoughts. It's probably related to the client breaking the connection while sensor states are being saved. Work should be done to mobile_app to migrate it to using built in restore state.

Can you all react to this comment with what app you're using? :thumbsup: for Home Assistant Companion for iOS, 馃槃 for Home Assistant Companion for Android, 馃殌 for other. If other, leave a comment with the app name.

Also FYI this error is nbd, you're just missing some sensor updates. I believe the data actually makes it into HA properly, the backup file just isn't saving.

Still seeing this in 0.107.3, the apps using to connect to HA are the HA android app and Fully Kiosk android.

Still seeing this in 0.107.5
Android App version 1.8.0-144

The only thing I've changed lately is to delete a Mobile App integration of a phone I no longer use.

Log Details (ERROR)
Logger: homeassistant.components.webhook
Source: helpers/storage.py:197
Integration: webhook (documentation, issues)
First occurred: 8:35:40 AM (1 occurrences)
Last logged: 8:35:40 AM

Error processing webhook ec576ef2df6309158580a79aebf22cxxxxxxxxxxb378486bc4b3ed8279a5cf91
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
    return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
    return await func(hass, config_entry, data)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 136, in async_save
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 197, in _async_handle_write_data
    self._write_data, self.path, data
concurrent.futures._base.CancelledError

I found the related device into core.config_entries but it's not related with the deleted phone but rather to a phone that it's working just fine. Maybe it's worth to delete this device too and restart the config?

           {
                "connection_class": "cloud_push",
                "data": {
                    "app_data": {
                        "push_token": "xxxxxxxxxxx:xxxxxxxxxxvE3kva3b2EEE8v5e3osZLZTj1D2-Qv2V5ipgqZSSBJ4NhwGBsrGXw63Dzf77DVfaBSaKyMFrOR5EtMocIV7nhXfzkeFWf70frTvdcAWTncmEj3tQrSjA8joSkA4nKSpyi3",
                        "push_url": "https://mobile-apps.home-assistant.io/api/sendPush/android/v1"
                    },
                    "app_id": "io.homeassistant.companion.android",
                    "app_name": "Home Assistant",
                    "app_version": "1.8.0-144 (144)",
                    "device_id": "1acd5fbxxxx0ab9d",
                    "device_name": "Pixel",
                    "manufacturer": "Google",
                    "model": "Pixel",
                    "os_name": "Android",
                    "os_version": "29",
                    "supports_encryption": false,
                    "user_id": "7016eaxxxxxxxxxx96543779558bc48b",
                    "webhook_id": "ec576ef2df6309158580a79aebf22cxxxxxxxxxxb378486bc4b3ed8279a5cf91"
                },
                "domain": "mobile_app",
                "entry_id": "03271xxxxxxxxxx195e15c91193765bb",
                "options": {},
                "source": "registration",
                "system_options": {
                    "disable_new_entities": false
                },
                "title": "Pixel",
                "unique_id": "io.homeassistant.companion.android-1acd5fb9b1c0ab9d",
                "version": 1
            },

I have 0.108.2 and i see this. I use IOS.
2020-04-10 22:43:10 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Received invalid webhook payload: required key not provided @ data[11]['state']. Got None
2020-04-10 22:43:57 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Received invalid webhook payload: required key not provided @ data[12]['state']. Got None

Ha hassio 107.5, (been there before) iOS companion app, seeing the identical errors, no need reposting....

I got the same error on Home Assistant 108.3. As soon as the error shows up in the log Home Assistant is no longer available via the web frontend. This makes HA essentially unusable for me :-(

We also have 2 smartphones connected, both Android. Is there a simple way to disable the moible_app integration?

@DanielAW yes, remove default_config:* from your configuration.yaml
And then put there only components you use

@fantomnotabene thanks!
This is how the error looks for me:

Apr 11 12:51:31 raspberrypi hass[939]: 2020-04-11 12:51:31 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 68aeeb565786e278caf6ade76b53740c8eba7995ec6382b79108dbce96edc2d0
Apr 11 12:51:31 raspberrypi hass[939]: Traceback (most recent call last):
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
Apr 11 12:51:31 raspberrypi hass[939]:     response = await webhook["handler"](hass, webhook_id, request)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
Apr 11 12:51:31 raspberrypi hass[939]:     return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
Apr 11 12:51:31 raspberrypi hass[939]:     return await func(hass, config_entry, data)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
Apr 11 12:51:31 raspberrypi hass[939]:     await hass.data[DOMAIN][DATA_STORE].async_save(safe)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 136, in async_save
Apr 11 12:51:31 raspberrypi hass[939]:     await self._async_handle_write_data()
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 197, in _async_handle_write_data
Apr 11 12:51:31 raspberrypi hass[939]:     self._write_data, self.path, data
Apr 11 12:51:31 raspberrypi hass[939]: concurrent.futures._base.CancelledError
Apr 11 12:51:31 raspberrypi hass[939]: 2020-04-11 12:51:31 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 68aeeb565786e278caf6ade76b53740c8eba7995ec6382b79108dbce96edc2d0
Apr 11 12:51:31 raspberrypi hass[939]: Traceback (most recent call last):
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
Apr 11 12:51:31 raspberrypi hass[939]:     response = await webhook["handler"](hass, webhook_id, request)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
Apr 11 12:51:31 raspberrypi hass[939]:     return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
Apr 11 12:51:31 raspberrypi hass[939]:     return await func(hass, config_entry, data)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
Apr 11 12:51:31 raspberrypi hass[939]:     await hass.data[DOMAIN][DATA_STORE].async_save(safe)
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 136, in async_save
Apr 11 12:51:31 raspberrypi hass[939]:     await self._async_handle_write_data()
Apr 11 12:51:31 raspberrypi hass[939]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 194, in _async_handle_write_data
Apr 11 12:51:31 raspberrypi hass[939]:     async with self._write_lock:
Apr 11 12:51:31 raspberrypi hass[939]:   File "/usr/lib/python3.7/asyncio/locks.py", line 92, in __aenter__
Apr 11 12:51:31 raspberrypi hass[939]:     await self.acquire()
Apr 11 12:51:31 raspberrypi hass[939]:   File "/usr/lib/python3.7/asyncio/locks.py", line 192, in acquire
Apr 11 12:51:31 raspberrypi hass[939]:     await fut
Apr 11 12:51:31 raspberrypi hass[939]: concurrent.futures._base.CancelledError

Did that fix it? I am getting the same errors randomly. I wonder if it's to do with the fully kiosk app.

I ended up only removing the integrations for the apps. But for now its working for me. I wonder if these https://github.com/home-assistant/core/pull/33456/files#diff-0109cf6022c1ff7bec4d690fcc9e17dd changes will help resolving the issue. I hope this will make it in the next HA version. I will recheck then.

If I disable mobile_app integration will it break the fully kiosk app also? I have this on a few wall tablets and it is needed.

I have the same error, though it is not affecting HA functionality, it just happens randomly, perhaps once per day (maybe less).

2020-04-19 17:25:47 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook ec5bd42832a01c47a94d3e36a0ebeb29cd4865c6586d6b31fea8420139c47d8c Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook response = await webhook["handler"](hass, webhook_id, request) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run return await func(hass, config_entry, data) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states await hass.data[DOMAIN][DATA_STORE].async_save(safe) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 136, in async_save await self._async_handle_write_data() File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 197, in _async_handle_write_data self._write_data, self.path, data concurrent.futures._base.CancelledError

I updated to 109.1 yesterday and activated the mobile_app integration again. In this version this PR should be build in #33456. I still get errors like this:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 78, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
    return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
    return await func(hass, config_entry, data)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 141, in async_save
    await self._async_handle_write_data()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 210, in _async_handle_write_data
    self._write_data, self.path, data
concurrent.futures._base.CancelledError

But this time it does not hang up my hole HA installation. I also suspect that this has to do with a slow SD card within the Raspi installation I'm using, I will swap the SD card with a faster one and see if the errors vanish completely.

Hi am at 109.2 - just recently installed the Companion for Android.
Still WebHook Error .

Same here, still seeing in 0.109.3

Using Home Assistant 0.109.4

Connected my iPhone using the app from the Apple Store, and watching the home-assistant.log file I got this error:
2020-05-06 05:23:56 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook eb19ed7db53fbfd443624cad4a66ca23c4647311335e94073b91847232fcd722
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 78, in async_handle_webhook
response = await webhook"handler"
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
return await WEBHOOK_COMMANDSwebhook_type
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
return await func(hass, config_entry, data)
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
await hass.data[DOMAIN][DATA_STORE].async_save(safe)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 141, in async_save
await self._async_handle_write_data()
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 210, in _async_handle_write_data
self._write_data, self.path, data
concurrent.futures._base.CancelledError

These were the lines before it, maybe they will help to debug better:
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new device_tracker.mobile_app entity: device_tracker.mandroid
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mobile_app
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.mobile_app
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_activity
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_battery_level
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_battery_state
2020-05-06 05:23:35 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_distance
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_floors_ascended
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_average_active_pace
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_steps
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_floors_descended
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_bssid
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_connection_type
2020-05-06 05:23:36 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_ssid
2020-05-06 05:23:39 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_sim_1
2020-05-06 05:23:39 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_last_update_trigger
2020-05-06 05:23:39 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.mobile_app entity: sensor.mandroid_geocoded_location

Hope this helps.

Home Assistant 0.109.6

Same issue.

Logger: homeassistant.components.webhook
Source: components/mobile_app/webhook.py:148
Integration: Webhook (documentation, issues)
First occurred: 8:12:08 PM (1 occurrences)
Last logged: 8:12:08 PM

Error processing webhook cef12ee37719b6a3fc2217055ad84e879038eed021ca6aa997a1c09f9d06ee9d
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 78, in async_handle_webhook
response = await webhook"handler"
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 148, in handle_webhook
req_data = await request.json()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_request.py", line 583, in json
body = await self.text()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_request.py", line 577, in text
bytes_body = await self.read()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_request.py", line 561, in read
chunk = await self._payload.readany()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/streams.py", line 380, in readany
await self._wait('readany')
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/streams.py", line 298, in _wait
await waiter
concurrent.futures._base.CancelledError

Having the same issue:
HA 0.109.0
2 iOS devices connected

Exact line numbers and errors as MiddleSiggy above. Things slowly stop working until I have to forcefully bounce the service.

Seeing errors:

2020-06-08 00:41:45 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 1ce26f7b8ce7cc0ceedefeab132c5a827fbb0ac0900536f1af2841aa8ba0e296 Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 78, in async_handle_webhook response = await webhook["handler"](hass, webhook_id, request) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run return await func(hass, config_entry, data) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states await hass.data[DOMAIN][DATA_STORE].async_save(safe) File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 141, in async_save await self._async_handle_write_data() File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 210, in _async_handle_write_data self._write_data, self.path, data concurrent.futures._base.CancelledError

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings