# Adding DAV to Kmail fails

**URL:** <https://discuss.kde.org/t/adding-dav-to-kmail-fails/15619>\
**Category:** Help\
**Tags:** kmail, kaddressbook, akonadi\
**Created:** [May 16, 2024, 9:01am UTC](https://discuss.kde.org/t/adding-dav-to-kmail-fails/15619 "2024-05-16T09:01:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonasanoniem](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@Jonasanoniem](https://discuss.kde.org/u/Jonasanoniem)\
**Post date:** [May 16, 2024, 9:01am UTC](https://discuss.kde.org/t/adding-dav-to-kmail-fails/15619/1 "2024-05-16T09:01:17Z")

</div>

Hi,  
I try to add my NextCloud CardDAV addressbook:

- Add DAV-groupware-source
- Fill in credentials
- Select Nextcloud as server
- Fill in host and path
- Test connection
- Result: an error occured: invalid answers from backend

 ![afbeelding](https://discuss-cdn.kde.org/uploads/default/original/2X/4/4c45e1f35f8f40eec6433029dcf1e1bfc15b8221.png)

Is that a nextcloud backend or Akonadi? In the logs from NextCloud I don’t see anything related.

How can I solve this? When I select “Finish” I get the opportunity to edit the info, but, no account is added.

EDIT: if I specify the path to my addressbook more precisly and select “fetch” I get the same error (invalid answers from backend).

 ![afbeelding](https://discuss-cdn.kde.org/uploads/default/original/2X/8/8e1aacbedf2083cdc4ed88749500c73654056161.png)

EDIT2:  
Altough in Kmail I don’t see the Nextcloud account, in the Akonadi-console I see 3 times Nextcloud and 2 times DAV-groupware. I could try delete those, but when opening Akonadi console I get a warning not to edit anything unless I know what I’m doing, and I don’t :-).

 ![afbeelding](https://discuss-cdn.kde.org/uploads/default/original/2X/4/44d935e872d7cec61717fecd925a59bcfd0f68d8.png)

---

<div class="post-metadata">

**Author:** ![Jonasanoniem](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@Jonasanoniem](https://discuss.kde.org/u/Jonasanoniem)\
**Post date:** [August 7, 2024, 10:38am UTC](https://discuss.kde.org/t/adding-dav-to-kmail-fails/15619/2 "2024-08-07T10:38:01Z")

</div>

I found the solution to the “adding DAV calendar: invalid answer from backend-problem”: I used the Owncloud protocol and that worked.
