iobroker-community-adapters / ioBroker.ical

Read information from google calender and from iCal files into ioBroker.
MIT License
44 stars 32 forks source link

Authorization Failed #647

Closed DanielK990 closed 6 months ago

DanielK990 commented 6 months ago

Describe the bug

The authorization fails with my baikal server 0.9.1.

I always get the error "Error reading from URL "...": 401"

Error reading from URL "http://192.168.178.195:82/baikal/html/dav.php/calendars/Daniel/default?export": Server responded HTTP-Statuscode=401: <?xml version="1.0" encoding="utf-8"?> 4.3.0</s:sabredav-version> Sabre\DAV\Exception\NotAuthenticated</s:exception> No 'Authorization: Digest' header found. Either the client didn't send one, or the server is misconfigured. Login was needed for privilege: {DAV:}read on calendars/Daniel/default</s:message> </d:error>

With version 1.11.4 on an older controller version is was still working (baikal server has not changed).

I manually downgraded to 1.11.4 with the new controller 5.0.17 and it also fails, so the problem seems to be also related to the used controller version.

URL, user name and password and password are properly configured. If I paste the URL in a browser and enter my credentials, I can download the ICS file.

To Reproduce
Steps to reproduce the behavior: see above

Expected behavior
Successful authorization

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

Additional context
Add any other context about the problem here.

DanielK990 commented 6 months ago

I solved it by changing the WebDAV authentication type of baikal from 'digest' to 'basic'.