mirror of
https://github.com/aluxnimm/outlookcaldavsynchronizer.git
synced 2026-04-25 11:05:56 +03:00
[GH-ISSUE #453] 403 Forbidden: "request on collections with depth in header of 'Infinity' is not allow" when syncing with WeChat Work CalDAV #438
Labels
No labels
1.0
1.0
1.0
2.0
Feature
Feature request
Google
Google Calendar
async
attachement
auto-migrated
auto-migrated
auto-migrated
bug
critical
enhancement
help wanted
implemented
pull-request
solved
solved
sourceforge
sourceforge
sourceforge
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/outlookcaldavsynchronizer#438
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wuri999 on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/453
Hello CalDav Synchronizer Team,
I am experiencing a persistent 403 Forbidden error when trying to synchronize my Outlook calendar with WeChat Work CalDAV. The error message clearly indicates the root cause: "request on collections with depth in header of "Infinity" is not allow".
Here is the exact error message from the synchronization report:
XML
企业微信 584f8fab-1471-4479-8475-d341ad2d1215 2025-06-05T02:23:28.7868119Z CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '403' ('Forbidden'). Message: <?xml version="1.0" encoding="utf-8" ?> <D:multistatus xmlns:D="DAV:" > <D:response> <D:href>/calendar/F23bnQ8vkyEK5gfRmgIAAAo/</D:href> <D:status>HTTP/1.0 403 Forbidden</D:status> <D:error><CC:propfind-finite-depth xmlns:CC="DAV:"/></D:error> <D:responsedescription>request on collections with depth in header of "Infinity" is not allow</D:responsedescription> </D:response> </D:multistatus>--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequest>d__9.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequestAndReadResponse>d__7.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 CalDavSynchronizer.DataAccess.WebDavDataAccess.<CollectionSync>d__15.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 CalDavSynchronizer.Implementation.CalDavRepository
1.<GetFullRepositoryState>d__21.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 GenSync.Synchronization.Synchronizer11.<Synchronize>d__27.MoveNext()--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.<Synchronize>d__3.MoveNext()
--- 引发异常的上一位置中堆堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 CalDavSynchronizer.Scheduling.SynchronizationProfileRunner.<RunAndRescheduleNoThrow>d__22.MoveNext()
false
00:00:01.1378730
It appears that CalDav Synchronizer is sending a PROPFIND request with a Depth: Infinity header, which the WeChat Work CalDAV server explicitly disallows.
Steps I have already tried, but which did not resolve the issue:
Toggling "Use WebDAV Collection Sync" option: I tried both enabling and disabling this option in the profile settings, but the error persists.
Modifying CalDavSynchronizer.dll.config file: I edited the CalDavSynchronizer.dll.config file (located in C:\Program Files (x86)\CalDavSynchronizer) to include/modify the following system.net settings, hoping to influence underlying HTTP request behavior:
<system.net>
</system.net>