Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with deleting snapshots #14

Closed
inverse opened this issue Dec 26, 2020 · 3 comments
Closed

Error with deleting snapshots #14

inverse opened this issue Dec 26, 2020 · 3 comments

Comments

@inverse
Copy link
Contributor

inverse commented Dec 26, 2020

When trying to use this extension I'm getting the following error:

2020-12-26 23:41:55 INFO (MainThread) [custom_components.clean_up_snapshots_service] Attempting to remove snapshot: slug=slug_value
2020-12-26 23:41:55 ERROR (MainThread) [custom_components.clean_up_snapshots_service] Client error on calling delete snapshot
Traceback (most recent call last):
  File "/config/custom_components/clean_up_snapshots_service/__init__.py", line 69, in async_remove_snapshots
    resp = await session.post(hassio_url + 'snapshots/' + snapshot['slug'] + "/remove", headers=headers, ssl=shouldVerifySsl(hassio_url))
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 632, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1002, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('http://hassio.beachi:8123/api/hassio/snapshots/slug_value/remove')

Running hassio install with Home Assistant 2020.12.1

Let me know if you need anymore info.

@tmonck
Copy link
Owner

tmonck commented Dec 26, 2020

I'll take a look. I just upgraded. So I'll try and replicate also.

@inverse
Copy link
Contributor Author

inverse commented Dec 27, 2020

@tmonck Weirdly this issue doesn't exist today and it looks like it's working. We can close this I think.

p.s thanks for doing this!

@inverse inverse closed this as completed Dec 27, 2020
@tmonck
Copy link
Owner

tmonck commented Dec 27, 2020

Thanks! Glad it's working now. Still gonna try and figure out why you got it that previously

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants