[GH-ISSUE #435] WebDavClientException - Bad Request #418

Open
opened 2026-02-25 20:31:35 +03:00 by kerem · 3 comments
Owner

Originally created by @BrankoH on GitHub (Nov 5, 2024).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/435

Synchronising Event

Google Calendar (b...@gmail.com) 0ee7d98c-9329-451f-abe5-73fa361bdde2 2024-11-04T15:19:05.0378494Z Unchanged: 180 , Added: 0 , Deleted 0 , Changed 2 Unchanged: 182 , Added: 0 , Deleted 0 , Changed 0 Create 0 , Update 0 , Delete 0 Create 0 , Update 2 , Delete 0 000000009630CD0808969C4B9F0F3170F7F63D5907009627917189EC1E4894A428F687A93E8400000000000000009627917189EC1E4894A428F687A93E84000000006F730000 /caldav/v2/bran...%40gmail.com/events/dn5reg2ukjo77j21tnt0qvtbao%40google.com.ics Stay at Hotel Scherer Stay at Hotel Scherer CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '400' ('Bad Request'). Message: <?xml version="1.0" encoding="UTF-8"?> <D:error xmlns:D="DAV:"/>

at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<EnsureSuccessStatusCode>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequest>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequestAndReturnResponseHeaders>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.DataAccess.CalDavDataAccess.<TryUpdateEntity>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.Implementation.CalDavRepository1.&lt;TryUpdate&gt;d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at CalDavSynchronizer.Implementation.CalDavRepository1.<TryUpdate>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.<PerformOperations>d__3.MoveNext()
UpdateInB




000000009630CD0808969C4B9F0F3170F7F63D5907009627917189EC1E4894A428F687A93E8400000000000000009627917189EC1E4894A428F687A93E84000000006F770000
/caldav/v2/b...r%40gmail.com/events/gjcsb4lbebl8359og995r7qukg%40google.com.ics
Stay at Hotel Central
Stay at Hotel Central
CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '400' ('Bad Request'). Message:
<?xml version="1.0" encoding="UTF-8"?>
<D:error xmlns:D="DAV:"/>

at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<EnsureSuccessStatusCode>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequest>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequestAndReturnResponseHeaders>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.DataAccess.CalDavDataAccess.<TryUpdateEntity>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CalDavSynchronizer.Implementation.CalDavRepository1.&lt;TryUpdate&gt;d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at CalDavSynchronizer.Implementation.CalDavRepository1.<TryUpdate>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.<PerformOperations>d__3.MoveNext()
UpdateInB


false
00:00:00.9238215

Originally created by @BrankoH on GitHub (Nov 5, 2024). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/435 Synchronising Event <?xml version="1.0" encoding="utf-16"?> <SynchronizationReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ProfileName>Google Calendar (b...@gmail.com)</ProfileName> <ProfileId>0ee7d98c-9329-451f-abe5-73fa361bdde2</ProfileId> <StartTime>2024-11-04T15:19:05.0378494Z</StartTime> <ADelta>Unchanged: 180 , Added: 0 , Deleted 0 , Changed 2</ADelta> <BDelta>Unchanged: 182 , Added: 0 , Deleted 0 , Changed 0</BDelta> <AJobsInfo>Create 0 , Update 0 , Delete 0</AJobsInfo> <BJobsInfo>Create 0 , Update 2 , Delete 0</BJobsInfo> <LoadErrors /> <EntitySynchronizationReports> <EntitySynchronizationReport> <MappingErrors /> <MappingWarnings /> <AId>000000009630CD0808969C4B9F0F3170F7F63D5907009627917189EC1E4894A428F687A93E8400000000000000009627917189EC1E4894A428F687A93E84000000006F730000</AId> <BId>/caldav/v2/bran...%40gmail.com/events/dn5reg2ukjo77j21tnt0qvtbao%40google.com.ics</BId> <ADisplayName>Stay at Hotel Scherer</ADisplayName> <BDisplayName>Stay at Hotel Scherer</BDisplayName> <ExceptionThatLeadToAbortion>CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '400' ('Bad Request'). Message: &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;D:error xmlns:D="DAV:"/&gt; at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.&lt;EnsureSuccessStatusCode&gt;d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.&lt;ExecuteWebDavRequest&gt;d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.&lt;ExecuteWebDavRequestAndReturnResponseHeaders&gt;d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.DataAccess.CalDavDataAccess.&lt;TryUpdateEntity&gt;d__28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.Implementation.CalDavRepository`1.&lt;TryUpdate&gt;d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at CalDavSynchronizer.Implementation.CalDavRepository`1.&lt;TryUpdate&gt;d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.&lt;PerformOperations&gt;d__3.MoveNext()</ExceptionThatLeadToAbortion> <Operation>UpdateInB</Operation> </EntitySynchronizationReport> <EntitySynchronizationReport> <MappingErrors /> <MappingWarnings /> <AId>000000009630CD0808969C4B9F0F3170F7F63D5907009627917189EC1E4894A428F687A93E8400000000000000009627917189EC1E4894A428F687A93E84000000006F770000</AId> <BId>/caldav/v2/b...r%40gmail.com/events/gjcsb4lbebl8359og995r7qukg%40google.com.ics</BId> <ADisplayName>Stay at Hotel Central</ADisplayName> <BDisplayName>Stay at Hotel Central</BDisplayName> <ExceptionThatLeadToAbortion>CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '400' ('Bad Request'). Message: &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;D:error xmlns:D="DAV:"/&gt; at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.&lt;EnsureSuccessStatusCode&gt;d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.&lt;ExecuteWebDavRequest&gt;d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.&lt;ExecuteWebDavRequestAndReturnResponseHeaders&gt;d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.DataAccess.CalDavDataAccess.&lt;TryUpdateEntity&gt;d__28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.Implementation.CalDavRepository`1.&lt;TryUpdate&gt;d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at CalDavSynchronizer.Implementation.CalDavRepository`1.&lt;TryUpdate&gt;d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.&lt;PerformOperations&gt;d__3.MoveNext()</ExceptionThatLeadToAbortion> <Operation>UpdateInB</Operation> </EntitySynchronizationReport> </EntitySynchronizationReports> <ConsiderExceptionThatLeadToAbortionAsWarning>false</ConsiderExceptionThatLeadToAbortionAsWarning> <Duration>00:00:00.9238215</Duration> </SynchronizationReport>
Author
Owner

@wifey21-web commented on GitHub (Nov 11, 2024):

<!-- gh-comment-id:2468423580 --> @wifey21-web commented on GitHub (Nov 11, 2024): -
Author
Owner

@cachius commented on GitHub (Nov 14, 2024):

@BrankoH Could you please format the errors as code using triple backticks ``` ?

The monospace font will make it easier to read.
<!-- gh-comment-id:2476999319 --> @cachius commented on GitHub (Nov 14, 2024): @BrankoH Could you please [format the errors as code](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks) using triple backticks \``` ? ``` The monospace font will make it easier to read. ````
Author
Owner

@brnbs commented on GitHub (Dec 6, 2024):

I have the same issue; everything worked flawlessly before. I tried refreshing the authentication by pressing the "Test Settings" and "Do Autodiscovery" buttons, but it says "Connection test successful," and the sync error remains.

<!-- gh-comment-id:2523278234 --> @brnbs commented on GitHub (Dec 6, 2024): I have the same issue; everything worked flawlessly before. I tried refreshing the authentication by pressing the "Test Settings" and "Do Autodiscovery" buttons, but it says "Connection test successful," and the sync error remains.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#418
No description provided.