danielwelch / hassio-dropbox-sync

Back up your Hass.io snapshots and other local files to Dropbox
Apache License 2.0
132 stars 37 forks source link

TypeError: 'NoneType' object is not subscriptable Exception #9

Open tlpbu opened 6 years ago

tlpbu commented 6 years ago

Thanks for your work creating this addon. I suggest you initiate adding this addon to Community addons so that more HA users are aware of such useful addon.

I`ve been using this addon for some time now but recently I started to notice exceptions in HA 0.78.0

2018-09-22 03:05:00 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /snapshots/new/full request
2018-09-22 03:05:00 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall hassio.snapshot_full (c:e6e1e167fc3742c392fc3b8558ade1e6): name=Automated Backup 2018-09-22>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1127, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 242, in async_service_handler
    _LOGGER.error("Error on Hass.io API: %s", ret['message'])
TypeError: 'NoneType' object is not subscriptable

Snapshot "Automated Backup 2018-09-22" is actually showing in stanpshots list but I did not verify yet if it is not corrupt.

Since Python is not my strength I cannot tell if this is caused by hassio-dropbox-sync addon or some changes in HA.