Issue when renaming "contacts" or with additional address books
I imported contacts directly to the e account by logging into my account on the computer and importing the vcard. But it didn't sync with my phone so I downloaded the vcard to my phone and imported them to the contact. Now I keep getting the notification from Account Manager saying HTTP server error - HTTP 404. Following is the debug log
--- BEGIN DEBUG INFO ---
Account name: Contacts (prateesh@e.email Eg)
Authority: com.android.contacts
HTTP REQUEST:
Request{method=PROPFIND, url=https://ecloud.global/remote.php/dav/addressbooks/users/prateesh@e.email/contacts/, tags={}}
<?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><CARD:supported-address-data /><supported-report-set /><n0:getctag xmlns:n0="http://calendarserver.org/ns/" /><sync-token /></prop></propfind>
HTTP RESPONSE:
Response{protocol=h2, code=404, message=, url=https://ecloud.global/remote.php/dav/addressbooks/users/prateesh@e.email/contacts/}
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<s:message>Addressbook with name 'contacts' could not be found</s:message>
</d:error>
REMOTE RESOURCE:
https://ecloud.global/remote.php/dav/addressbooks/users/prateesh@e.email/contacts/
EXCEPTION:
foundation.e.dav4android.exception.NotFoundException: HTTP 404
at foundation.e.dav4android.DavResource.checkStatus(DavResource.kt:408)
at foundation.e.dav4android.DavResource.checkStatus(DavResource.kt:392)
at foundation.e.dav4android.DavResource.processMultiStatus(DavResource.kt:484)
at foundation.e.dav4android.DavResource.propfind(DavResource.kt:379)
at foundation.e.accountmanager.syncadapter.ContactsSyncManager$queryCapabilities$1.invoke(ContactsSyncManager.kt:134)
at foundation.e.accountmanager.syncadapter.ContactsSyncManager$queryCapabilities$1.invoke(ContactsSyncManager.kt:79)
at foundation.e.accountmanager.syncadapter.SyncManager.useRemote(SyncManager.kt:781)
at foundation.e.accountmanager.syncadapter.SyncManager.useRemoteCollection(SyncManager.kt:802)
at foundation.e.accountmanager.syncadapter.ContactsSyncManager.queryCapabilities(ContactsSyncManager.kt:132)
at foundation.e.accountmanager.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:122)
at foundation.e.accountmanager.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:59)
at foundation.e.accountmanager.syncadapter.SyncManager.unwrapExceptions(SyncManager.kt:807)
at foundation.e.accountmanager.syncadapter.SyncManager.performSync(SyncManager.kt:113)
at foundation.e.accountmanager.syncadapter.EeloContactsSyncAdapterService$ContactsSyncAdapter.sync(EeloContactsSyncAdapterService.kt:97)
at foundation.e.accountmanager.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:83)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:321)
SOFTWARE INFORMATION
Package: foundation.e.accountmanager
Version: 2.0.5-ose (248) from 2 Oct 2019
Installed from: APK (directly)
JB Workaround installed: no
CONNECTIVITY (at the moment)
Active connection: WiFi, CONNECTED
CONFIGURATION
Power saving disabled: yes
android.permission.READ_CONTACTS permission: granted
android.permission.WRITE_CONTACTS permission: granted
android.permission.READ_CALENDAR permission: granted
android.permission.WRITE_CALENDAR permission: granted
org.dmfs.permission.READ_TASKS permission: granted
org.dmfs.permission.WRITE_TASKS permission: granted
System-wide synchronization: automatically
Account: prateesh@e.email
Address book sync. interval: 15 min
Calendar sync. interval: 2 min
OpenTasks sync. interval: 2 min
WiFi only: false
[CardDAV] Contact group method: GROUP_VCARDS
[CalDAV] Time range (past days): 90
Manage calendar colors: true
Address book account: Contacts (prateesh@e.email Eg)
Main account: Account {name=prateesh@e.email, type=e.foundation.webdav.eelo}
URL: https://ecloud.global/remote.php/dav/addressbooks/users/prateesh@e.email/contacts/
Sync automatically: true
SQLITE DUMP
android_metadata
| locale |
| en_GB |
----------
services
| _id | accountName | authState | accountType | addressBookAccountType | service | principal |
| 1 | prateesh@e.email | <null> | e.foundation.webdav.eelo | foundation.e.accountmanager.eelo.address_book | carddav | https://ecloud.global/remote.php/dav/principals/users/prateesh@e.email/ |
| 2 | prateesh@e.email | <null> | e.foundation.webdav.eelo | foundation.e.accountmanager.eelo.address_book | caldav | https://ecloud.global/remote.php/dav/principals/users/prateesh@e.email/ |
----------
sqlite_sequence
| name | seq |
| services | 2 |
| homesets | 2 |
| collections | 2 |
----------
homesets
| _id | serviceID | url |
| 1 | 1 | https://ecloud.global/remote.php/dav/addressbooks/users/prateesh@e.email/ |
| 2 | 2 | https://ecloud.global/remote.php/dav/calendars/prateesh@e.email/ |
----------
collections
| _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
| 1 | 1 | ADDRESS_BOOK | https://ecloud.global/remote.php/dav/addressbooks/users/prateesh@e.email/contacts/ | 1 | 1 | 0 | Contacts | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
| 2 | 2 | CALENDAR | https://ecloud.global/remote.php/dav/calendars/prateesh@e.email/personal/ | 1 | 1 | 0 | Personal | <null> | <null> | <null> | 1 | 1 | <null> | 1 |
----------
SYSTEM INFORMATION
Android version: 8.1.0 (lineage_whyred-userdebug 8.1.0 OPM7.181205.001 f8b793439d dev-keys)
Device: Xiaomi Redmi Note 5 Pro (whyred)
--- END DEBUG INFO ---
Edited by Arnau Vàzquez