[GH-ISSUE #324] Contacts sync with Google, error 400 #777

Closed
opened 2026-03-01 17:41:29 +03:00 by kerem · 2 comments
Owner

Originally created by @filippobottega on GitHub (Jul 26, 2021).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/324

Syncing Outlook contacts with Google contacts I get this exception:

Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/xxxxxxxxxxxxxxxx/full?start-index=26&max-results=25 ---> System.Net.WebException: Errore del server remoto: (400) Richiesta non valida.
   at System.Net.HttpWebRequest.GetResponse()
   at Google.GData.Client.GDataRequest.Execute()
   --- End of inner exception stack trace ---
   at Google.GData.Client.GDataRequest.Execute()
   at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
   at Google.GData.Client.GOAuth2Request.Execute()
   at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength)
   at Google.GData.Client.Service.Query(FeedQuery feedQuery)
   at Google.GData.Client.Feed`1.get_AtomFeed()
   at Google.GData.Client.Feed`1.<get_Entries>d__0.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at CalDavSynchronizer.Implementation.GoogleContacts.GoogleGroupCache.Fill() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Implementation\GoogleContacts\GoogleGroupCache.cs:line 43
   at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactContextFactory.<Create>b__5_0() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Implementation\GoogleContacts\GoogleContactContextFactory.cs:line 55
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactContextFactory.<Create>d__5.MoveNext() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Implementation\GoogleContacts\GoogleContactContextFactory.cs:line 52
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at GenSync.Synchronization.Synchronizer`11.<SynchronizePartial>d__28.MoveNext() in C:\outlookcaldavsynchronizer\GenSync\Synchronization\Synchronizer.cs:line 246
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.<SynchronizePartial>d__4.MoveNext() in C:\outlookcaldavsynchronizer\GenSync\Synchronization\ContextCreatingSynchronizerDecorator.cs:line 54
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at CalDavSynchronizer.Synchronization.OutlookSynchronizer`2.<SynchronizePartial>d__3.MoveNext() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Synchronization\OutlookSynchronizer.cs:line 53
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at CalDavSynchronizer.Scheduling.SynchronizationProfileRunner.<RunPartialNoThrow>d__23.MoveNext() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Scheduling\SynchronizationProfileRunner.cs:line 297

If I retry sometimes the exception is raised and sometimes the synchronisation process ends without errors.

Originally created by @filippobottega on GitHub (Jul 26, 2021). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/324 Syncing Outlook contacts with Google contacts I get this exception: ``` Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/xxxxxxxxxxxxxxxx/full?start-index=26&max-results=25 ---> System.Net.WebException: Errore del server remoto: (400) Richiesta non valida. at System.Net.HttpWebRequest.GetResponse() at Google.GData.Client.GDataRequest.Execute() --- End of inner exception stack trace --- at Google.GData.Client.GDataRequest.Execute() at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) at Google.GData.Client.GOAuth2Request.Execute() at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength) at Google.GData.Client.Service.Query(FeedQuery feedQuery) at Google.GData.Client.Feed`1.get_AtomFeed() at Google.GData.Client.Feed`1.<get_Entries>d__0.MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection) at CalDavSynchronizer.Implementation.GoogleContacts.GoogleGroupCache.Fill() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Implementation\GoogleContacts\GoogleGroupCache.cs:line 43 at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactContextFactory.<Create>b__5_0() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Implementation\GoogleContacts\GoogleContactContextFactory.cs:line 55 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactContextFactory.<Create>d__5.MoveNext() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Implementation\GoogleContacts\GoogleContactContextFactory.cs:line 52 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at GenSync.Synchronization.Synchronizer`11.<SynchronizePartial>d__28.MoveNext() in C:\outlookcaldavsynchronizer\GenSync\Synchronization\Synchronizer.cs:line 246 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.<SynchronizePartial>d__4.MoveNext() in C:\outlookcaldavsynchronizer\GenSync\Synchronization\ContextCreatingSynchronizerDecorator.cs:line 54 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at CalDavSynchronizer.Synchronization.OutlookSynchronizer`2.<SynchronizePartial>d__3.MoveNext() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Synchronization\OutlookSynchronizer.cs:line 53 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at CalDavSynchronizer.Scheduling.SynchronizationProfileRunner.<RunPartialNoThrow>d__23.MoveNext() in C:\outlookcaldavsynchronizer\CalDavSynchronizer\Scheduling\SynchronizationProfileRunner.cs:line 297 ``` If I retry sometimes the exception is raised and sometimes the synchronisation process ends without errors.
kerem closed this issue 2026-03-01 17:41:29 +03:00
Author
Owner

@EddyXorb commented on GitHub (Nov 2, 2021):

I have the same issue:

Google Kontakte 4409fdfa-207a-4bde-a274-b34934fb2ac2 2021-11-02T09:53:07.1437134Z Google.GData.Client.GDataRequestException: Execution of request failed: [...] Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. at System.Net.HttpWebRequest.GetResponse() at Google.GData.Client.GDataRequest.Execute() --- End of inner exception stack trace --- at Google.GData.Client.GDataRequest.Execute() at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) at Google.GData.Client.GOAuth2Request.Execute() at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength) at Google.GData.Client.Service.Query(FeedQuery feedQuery) at Google.GData.Client.Feed`1.get_AtomFeed() at Google.GData.Client.Feed`1.<get_Entries>d__0.MoveNext() at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactCache.Fill(String defaultGroupIdOrNull) at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactContextFactory.<Create>b__5_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- 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.GoogleContacts.GoogleContactContextFactory.<Create>d__5.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 GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.<Synchronize>d__3.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.Scheduling.SynchronizationProfileRunner.<RunAndRescheduleNoThrow>d__22.MoveNext() false 00:00:00.3402533

It happens with the current Version 4.1.0.0.

<!-- gh-comment-id:957280602 --> @EddyXorb commented on GitHub (Nov 2, 2021): I have the same issue: <?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 Kontakte</ProfileName> <ProfileId>4409fdfa-207a-4bde-a274-b34934fb2ac2</ProfileId> <StartTime>2021-11-02T09:53:07.1437134Z</StartTime> <LoadErrors /> <EntitySynchronizationReports /> <ExceptionThatLeadToAbortion>Google.GData.Client.GDataRequestException: Execution of request failed: [...] Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. at System.Net.HttpWebRequest.GetResponse() at Google.GData.Client.GDataRequest.Execute() --- End of inner exception stack trace --- at Google.GData.Client.GDataRequest.Execute() at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) at Google.GData.Client.GOAuth2Request.Execute() at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64&amp; contentLength) at Google.GData.Client.Service.Query(FeedQuery feedQuery) at Google.GData.Client.Feed`1.get_AtomFeed() at Google.GData.Client.Feed`1.&lt;get_Entries&gt;d__0.MoveNext() at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactCache.Fill(String defaultGroupIdOrNull) at CalDavSynchronizer.Implementation.GoogleContacts.GoogleContactContextFactory.&lt;Create&gt;b__5_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- 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.GoogleContacts.GoogleContactContextFactory.&lt;Create&gt;d__5.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 GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.&lt;Synchronize&gt;d__3.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.Scheduling.SynchronizationProfileRunner.&lt;RunAndRescheduleNoThrow&gt;d__22.MoveNext()</ExceptionThatLeadToAbortion> <ConsiderExceptionThatLeadToAbortionAsWarning>false</ConsiderExceptionThatLeadToAbortionAsWarning> <Duration>00:00:00.3402533</Duration> </SynchronizationReport> It happens with the current Version 4.1.0.0.
Author
Owner

@felipelrz commented on GitHub (Dec 11, 2021):

Please check this thread for a possible solution.

<!-- gh-comment-id:991659334 --> @felipelrz commented on GitHub (Dec 11, 2021): Please check [this thread](https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/333#issuecomment-991658861) for a possible solution.
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#777
No description provided.