8000 Webdav integration - Unexpected error on initial setup · Issue #145655 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content
Webdav integration - Unexpected error on initial setup #145655
Open
@logut

Description

@logut

The problem

While setting up a backup via webdav, the interface only tells me "Unexpected error". I have to go in logs to see the real error : aiowebdav2.exceptions.ResponseErrorCodeError: Request to https://u1234-sub2.your-storagebox.de failed with code 403 and message: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>403 Forbidden</title>\n</head><body>\n<h1>Forbidden</h1>\n<p>You don\'t have permission to access this resource.</p>\n<hr>\n<address>Apache Server at u1234-sub2.your-storagebox.de Port 443</address>\n</body></html>\n'

Cloud the error be handled and shown directly in the setup interface ?
Even this raw response would be ok for me.

What version of Home Assistant Core has the issue?

core-2025.5.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

webdav

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.components.webdav.config_flow
Source: components/webdav/config_flow.py:65
integration: webdav (documentation, issues)
First occurred: 23:03:24 (2 occurrences)
Last logged: 23:06:38

Unexpected error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webdav/config_flow.py", line 65, in async_step_user
    result = await client.check()
             ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiowebdav2/client.py", line 408, in check
    response = await self.execute_request(action="check", path=urn.path())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiowebdav2/client.py", line 269, in execute_request
    raise ResponseErrorCodeError(
    ...<3 lines>...
    )
aiowebdav2.exceptions.ResponseErrorCodeError: Request to https://u1234-sub2.your-storagebox.de failed with code 403 and message: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>403 Forbidden</title>\n</head><body>\n<h1>Forbidden</h1>\n<p>You don\'t have permission to access this resource.</p>\n<hr>\n<address>Apache Server at u1234-sub2.your-storagebox.de Port 443</address>\n</body></html>\n'

Additional information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0