CALDAV integration: issue with Infomaniak

Hi @prohand … EDIT: Oh wait, it’s @bertrandda!
I’m having trouble connecting with Infomaniak for the CALDAV integration (I’ve checked, the password is correct). It works perfectly with the internal integration … which is deprecated.
Here are the logs:

[2026-11-29T19:33:34.856Z] [INFO] onCalendarAccountUpdated <- stephane
[2026-11-29T19:33:35.294Z] [ERROR] [scheduler] stephane: CalDAV sync failed Error: CalDAV discovery failed: Invalid credentials: PROPFIND https://sync.infomaniak.com/ returned 401 Unauthorized
    at SyncManager.createCalDavClient [as createClient] (file:///app/src/caldav.js:170:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async SyncManager.runPass (file:///app/src/scheduler.js:200:22) {
  [cause]: Error: Invalid credentials: PROPFIND https://sync.infomaniak.com/ returned 401 Unauthorized
      at fetchPrincipalUrl (file:///app/node_modules/tsdav/dist/tsdav.mjs:2083:39)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async findPrincipalUrl (file:///app/node_modules/tsdav/dist/tsdav.mjs:2141:20)
      at async createAccount (file:///app/node_modules/tsdav/dist/tsdav.mjs:2158:37)
      at async DAVClient.login (file:///app/node_modules/tsdav/dist/tsdav.mjs:2540:37)
      at async SyncManager.createCalDavClient [as createClient] (file:///app/src/caldav.js:168:5)
      at async SyncManager.runPass (file:///app/src/scheduler.js:200:22)
}
[2026-11-29T19:33:41.719Z] [INFO] Action sync_now
[2026-11-29T19:33:42.110Z] [ERROR] [scheduler] stephane: CalDAV sync failed Error: CalDAV discovery failed: Invalid credentials: PROPFIND https://sync.infomaniak.com/ returned 401 Unauthorized
    at SyncManager.createCalDavClient [as createClient] (file:///app/src/caldav.js:170:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async SyncManager.runPass (file:///app/src/scheduler.js:200:22) {
  [cause]: Error: Invalid credentials: PROPFIND https://sync.infomaniak.com/ returned 401 Unauthorized
      at fetchPrincipalUrl (file:///app/node_modules/tsdav/dist/tsdav.mjs:2083:39)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async findPrincipalUrl (file:///app/node_modules/tsdav/dist/tsdav.mjs:2141:20)
      at async createAccount (file:///app/node_modules/tsdav/dist/tsdav.mjs:2158:37)
      at async DAVClient.login (file:///app/node_modules/tsdav/dist/tsdav.mjs:2540:37)
      at async SyncManager.createCalDavClient [as createClient] (file:///app/src/caldav.js:168:5)
      at async SyncManager.runPass (file:///app/src/scheduler.js:200:22)
}

Wouldn’t it be possible to “migrate” what we already have in the internal integration to the external one?

Hi @mutmut, are you talking about the gladys-caldav-sync integration?

:face_with_crossed_out_eyes: oh my god yes, I’m tired now


Ok so:

Ok thanks, there is a suspicion about the encoding of the authentication. If your password contains an accented or special character (é, à, ç, °, £, €…), don’t give it to me, just tell me yes or no. In this case, the integration wasn’t sending it in the same encoding as the old one, and Infomaniak was refusing it (the 401 in your logs). It’s fixed, it’s in the next version which is being released.

The identifier you are using is in the format AB12345 (visible in the Infomaniak synchronization assistant), not your email address?

For the migration: the external integration runs in an isolated container and does not have access to the settings of the old integration. You therefore need to re-enter the three fields in the « My Calendars » block. Then remember to disable the old integration, otherwise your events will be duplicated. The migration concept we have on other integrations is associated with the Device/DeviceFeature models of the core, in the case of caldav, the integration touches the Calendar/Event models which does not have a migration system at the moment