[GH-ISSUE #333] Google Contacts not sincyng since last 2 days (API change?) #1220

Open
opened 2026-03-14 00:39:56 +03:00 by kerem · 23 comments
Owner

Originally created by @carlos-48 on GitHub (Oct 7, 2021).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/333

Hello,

Past weeks I got an error syncing Google Contacts, let's say one or twice per day. I did not pay attention because the other attempts to sync were OK.

Now, two days ago, I'm getting an error every 5 minutes, and it's not syncing. I've read that it could be due to a Google API change, from the old Contacts API to the new People API.

image

Originally created by @carlos-48 on GitHub (Oct 7, 2021). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/333 Hello, Past weeks I got an error syncing Google Contacts, let's say one or twice per day. I did not pay attention because the other attempts to sync were OK. Now, two days ago, I'm getting an error every 5 minutes, and it's not syncing. I've read that it could be due to a Google API change, from the old Contacts API to the new People API. ![image](https://user-images.githubusercontent.com/63410909/136327418-47e66fd3-0482-478c-97be-997e07a9c47d.png)
Author
Owner

@itsolon commented on GitHub (Oct 7, 2021):

Hello,

Past weeks I got an error syncing Google Contacts, let's say one or twice per day. I did not pay attention because the other attempts to sync were OK.

Now, two days ago, I'm getting an error every 5 minutes, and it's not syncing. I've read that it could be due to a Google API change, from the old Contacts API to the new People API.

image

the same for me

<!-- gh-comment-id:938174048 --> @itsolon commented on GitHub (Oct 7, 2021): > Hello, > > Past weeks I got an error syncing Google Contacts, let's say one or twice per day. I did not pay attention because the other attempts to sync were OK. > > Now, two days ago, I'm getting an error every 5 minutes, and it's not syncing. I've read that it could be due to a Google API change, from the old Contacts API to the new People API. > > ![image](https://user-images.githubusercontent.com/63410909/136327418-47e66fd3-0482-478c-97be-997e07a9c47d.png) the same for me
Author
Owner

@JFAlbrecht commented on GitHub (Oct 8, 2021):

Same Here as well

<!-- gh-comment-id:938424657 --> @JFAlbrecht commented on GitHub (Oct 8, 2021): Same Here as well
Author
Owner

@dust0vich commented on GitHub (Oct 8, 2021):

Same issue. Even with new oauth approval.

Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
Win 10 21H1
Outlook 2019 Version 2109
Caldav Synchronizer 4.1.0

<!-- gh-comment-id:938719609 --> @dust0vich commented on GitHub (Oct 8, 2021): Same issue. Even with new oauth approval. `Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full ---> System.Net.WebException: The remote server returned an error: (400) Bad Request. ` Win 10 21H1 Outlook 2019 Version 2109 Caldav Synchronizer 4.1.0
Author
Owner

@BoGnY commented on GitHub (Oct 11, 2021):

same issue on multiple pc

<!-- gh-comment-id:940010420 --> @BoGnY commented on GitHub (Oct 11, 2021): same issue on multiple pc
Author
Owner

@krystofkrticka commented on GitHub (Oct 11, 2021):

I have same issue, and I already tried signing in again.

<!-- gh-comment-id:940101998 --> @krystofkrticka commented on GitHub (Oct 11, 2021): I have same issue, and I already tried signing in again.
Author
Owner

@filippobottega commented on GitHub (Oct 13, 2021):

Same issue for me:

<ExceptionThatLeadToAbortion>Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full ---&gt; System.Net.WebException: Errore del server remoto: (400) Richiesta non valida.

<!-- gh-comment-id:942296098 --> @filippobottega commented on GitHub (Oct 13, 2021): Same issue for me: ` <ExceptionThatLeadToAbortion>Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full ---&gt; System.Net.WebException: Errore del server remoto: (400) Richiesta non valida.`
Author
Owner

@HyP3r- commented on GitHub (Oct 19, 2021):

Same issue for me:

Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/contacts/foobar@gmail.com/full?max-results=100&group=http://www.google.com/m8/feeds/groups/foobar%2540gmail.com/base/6 ---> System.Net.WebException: 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()
<!-- gh-comment-id:947054955 --> @HyP3r- commented on GitHub (Oct 19, 2021): Same issue for me: ``` Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/contacts/foobar@gmail.com/full?max-results=100&group=http://www.google.com/m8/feeds/groups/foobar%2540gmail.com/base/6 ---> System.Net.WebException: 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() ```
Author
Owner

@aluxnimm commented on GitHub (Oct 20, 2021):

Yes, Google changed the API, we are working on the new people API but this will take some time. Our focus is CalDAV/CardDAV not proprietary APIs.

<!-- gh-comment-id:947424219 --> @aluxnimm commented on GitHub (Oct 20, 2021): Yes, Google changed the API, we are working on the new people API but this will take some time. Our focus is CalDAV/CardDAV not proprietary APIs.
Author
Owner

@filippobottega commented on GitHub (Oct 21, 2021):

I @aluxnimm , do you know if there is a workaround to sync Google Contacts in the meantime?

If I disable native API:

image

I get this error:

image

<!-- gh-comment-id:948377372 --> @filippobottega commented on GitHub (Oct 21, 2021): I @aluxnimm , do you know if there is a workaround to sync Google Contacts in the meantime? If I disable native API: ![image](https://user-images.githubusercontent.com/2587684/138240001-2b0d0ab7-e88b-495e-8af9-749ae28bd50b.png) I get this error: ![image](https://user-images.githubusercontent.com/2587684/138239919-3a105a08-e81f-473d-9619-05b1cfad050b.png)
Author
Owner

@Rubberduck2021 commented on GitHub (Dec 6, 2021):

While waiting for the developers of Outlook CalDav Synchronizer to update to the new google API, I am using GO Contact Sync Mod to sync contacts between Outlook and Google.

<!-- gh-comment-id:986990169 --> @Rubberduck2021 commented on GitHub (Dec 6, 2021): While waiting for the developers of Outlook CalDav Synchronizer to update to the new google API, I am using [GO Contact Sync Mod](https://sourceforge.net/projects/googlesyncmod/files/latest/download) to sync contacts between Outlook and Google.
Author
Owner

@filippobottega commented on GitHub (Dec 6, 2021):

@Rubberduck2021 me too!
Thank you for your suggestion!

<!-- gh-comment-id:987072827 --> @filippobottega commented on GitHub (Dec 6, 2021): @Rubberduck2021 me too! Thank you for your suggestion!
Author
Owner

@jpickerell commented on GitHub (Dec 6, 2021):

Looks like coding attempts have begun by @nertsch to try to get switched over to the new Google People API!!!! Maybe we'll see a fix for this before the end of the calendar year!?!

Anyone want to compile and test to see if it's working?! (not sure if code ready to test or not yet???)

Tree
Commit

<!-- gh-comment-id:987273163 --> @jpickerell commented on GitHub (Dec 6, 2021): Looks like coding attempts have begun by @nertsch to try to get switched over to the new Google People API!!!! Maybe we'll see a fix for this before the end of the calendar year!?! Anyone want to compile and test to see if it's working?! (not sure if code ready to test or not yet???) [Tree](https://github.com/aluxnimm/outlookcaldavsynchronizer/tree/feature/switch_to_google_people_api) [Commit](https://github.com/aluxnimm/outlookcaldavsynchronizer/commit/c690cec76d191e5464cbe141f03950bb66013bd6)
Author
Owner

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

I was struggling with this issue, but yesterday I've found a solution:

  1. Uncheck 'Use Google native API'
  2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described here.

There is comprehensive post by Wayland Bruns, but the most interesting part is:

Starting June 15, 2021, API calls will begin returning errors at a steadily increasing rate, until the error rate reaches 100% on December 15, 2021, as outlined below:

• June 15, 2021 – September 15, 2021: 1% of Google Contacts API calls will return errors
• September 15, 2021 – December 15, 2021: 10% of Google Contacts API calls will return errors
• December 15, 2021, and onward: 100% of Google Contacts API calls will return errors

I hope that help.

<!-- gh-comment-id:991658861 --> @felipelrz commented on GitHub (Dec 11, 2021): I was struggling with this issue, but yesterday I've found a solution: 1. Uncheck 'Use Google native API' 2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described [here](https://developers.google.com/people/carddav#resources). There is comprehensive [post](https://www.companionlink.com/blog/2021/01/what-google-people-api-means-for-apps-that-sync-google-calendar-with-outlook/) by Wayland Bruns, but the most interesting part is: > Starting June 15, 2021, API calls will begin returning errors at a steadily increasing rate, until the **error rate reaches 100% on December 15, 2021**, as outlined below: > >• June 15, 2021 – September 15, 2021: 1% of Google Contacts API calls will return errors >• September 15, 2021 – December 15, 2021: 10% of Google Contacts API calls will return errors >• December 15, 2021, and onward: 100% of Google Contacts API calls will return errors > I hope that help.
Author
Owner

@mneiger commented on GitHub (Dec 12, 2021):

@felipelrz it definitely helps, thanks a lot.
Contact groups are not synced anymore, but this is a minor annoyance for me, especially as I'm syncing "Outlook to google" only.

<!-- gh-comment-id:991951844 --> @mneiger commented on GitHub (Dec 12, 2021): @felipelrz it definitely helps, thanks a lot. Contact groups are not synced anymore, but this is a minor annoyance for me, especially as I'm syncing "Outlook to google" only.
Author
Owner

@Vivsim commented on GitHub (Jan 7, 2022):

@felipelrz. Thanks so much. Luckily, I don't have contact groups so my whole problem is solved.
Your solution didn't work the first time I tried it because I made a mistake. It didn't click with me that I had to replace 'UserEmail' in the URL with my actual user email. Stupid but just the sort of mistake that's easy to make. I'm so relieved to be synching contacts again. Can't thank you enough.

<!-- gh-comment-id:1007752102 --> @Vivsim commented on GitHub (Jan 7, 2022): @felipelrz. Thanks so much. Luckily, I don't have contact groups so my whole problem is solved. Your solution didn't work the first time I tried it because I made a mistake. It didn't click with me that I had to replace 'UserEmail' in the URL with my actual user email. Stupid but just the sort of mistake that's easy to make. I'm so relieved to be synching contacts again. Can't thank you enough.
Author
Owner

@JReming85 commented on GitHub (Jan 11, 2022):

I was struggling with this issue, but yesterday I've found a solution:

  1. Uncheck 'Use Google native API'
  2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described here.

There is comprehensive post by Wayland Bruns, but the most interesting part is:

Starting June 15, 2021, API calls will begin returning errors at a steadily increasing rate, until the error rate reaches 100% on December 15, 2021, as outlined below:
• June 15, 2021 – September 15, 2021: 1% of Google Contacts API calls will return errors
• September 15, 2021 – December 15, 2021: 10% of Google Contacts API calls will return errors
• December 15, 2021, and onward: 100% of Google Contacts API calls will return errors

I hope that help.

Thank you, that solved it for me

https://www.googleapis.com/carddav/v1/principals/<Google Email>/lists/ returns all contacts for me despite group

<!-- gh-comment-id:1010274569 --> @JReming85 commented on GitHub (Jan 11, 2022): > I was struggling with this issue, but yesterday I've found a solution: > > 1. Uncheck 'Use Google native API' > 2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described [here](https://developers.google.com/people/carddav#resources). > > There is comprehensive [post](https://www.companionlink.com/blog/2021/01/what-google-people-api-means-for-apps-that-sync-google-calendar-with-outlook/) by Wayland Bruns, but the most interesting part is: > > > Starting June 15, 2021, API calls will begin returning errors at a steadily increasing rate, until the **error rate reaches 100% on December 15, 2021**, as outlined below: > > • June 15, 2021 – September 15, 2021: 1% of Google Contacts API calls will return errors > > • September 15, 2021 – December 15, 2021: 10% of Google Contacts API calls will return errors > > • December 15, 2021, and onward: 100% of Google Contacts API calls will return errors > > I hope that help. Thank you, that solved it for me `https://www.googleapis.com/carddav/v1/principals/<Google Email>/lists/` returns all contacts for me despite group
Author
Owner

@Stepan-H commented on GitHub (Jan 20, 2022):

I was struggling with this issue, but yesterday I've found a solution:

  1. Uncheck 'Use Google native API'

  2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described here.

There is comprehensive post by Wayland Bruns, but the most interesting part is:

I hope that help.

Does not working for me... 😥

<!-- gh-comment-id:1017961094 --> @Stepan-H commented on GitHub (Jan 20, 2022): > I was struggling with this issue, but yesterday I've found a solution: > > 1. Uncheck 'Use Google native API' > > 2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described [here](https://developers.google.com/people/carddav#resources). > > > There is comprehensive [post](https://www.companionlink.com/blog/2021/01/what-google-people-api-means-for-apps-that-sync-google-calendar-with-outlook/) by Wayland Bruns, but the most interesting part is: > > > I hope that help. Does not working for me... 😥
Author
Owner

@JReming85 commented on GitHub (Jan 21, 2022):

https://www.googleapis.com/carddav/v1/principals/<Google Email>/lists/ returns all contacts for me despite group

Try using this, worked for both my personal and enterpise account

<!-- gh-comment-id:1018049389 --> @JReming85 commented on GitHub (Jan 21, 2022): > `https://www.googleapis.com/carddav/v1/principals/<Google Email>/lists/` returns all contacts for me despite group Try using this, worked for both my personal and enterpise account
Author
Owner

@BoGnY commented on GitHub (Jan 28, 2022):

@Stepan-H commented on 20 gen 2022, 22:55 CET:

I was struggling with this issue, but yesterday I've found a solution:

  1. Uncheck 'Use Google native API'

  2. Edit the URL to "https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/" as described here.

There is comprehensive post by Wayland Bruns, but the most interesting part is:

I hope that help.

Does not working for me... 😥

yes, with this url it doesn't return any errors, but contacts are not syncronized 😭

<!-- gh-comment-id:1024070283 --> @BoGnY commented on GitHub (Jan 28, 2022): [**@Stepan-H**](https://github.com/Stepan-H) commented on [20 gen 2022, 22:55 CET](https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/333#issuecomment-1017961094 "2022-01-20T21:55:25Z - Replied by Github Reply Comments"): > > I was struggling with this issue, but yesterday I've found a solution: > > > > 1. Uncheck 'Use Google native API' > > > > 2. Edit the URL to "[https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/](https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/)" as described [here](https://developers.google.com/people/carddav#resources). > > > > > > There is comprehensive [post](https://www.companionlink.com/blog/2021/01/what-google-people-api-means-for-apps-that-sync-google-calendar-with-outlook/) by Wayland Bruns, but the most interesting part is: > > > > I hope that help. > > Does not working for me... 😥 yes, with this url it doesn't return any errors, but contacts are not syncronized 😭
Author
Owner

@grv87 commented on GitHub (Feb 3, 2022):

Note that disabling "Google native API" means that CardDAV is used. And not all Google Contacts are available via CardDAV.

For example, I have 798 entries in Google Contacts now.
When I sync them with Outlook via CardDAV (not using Native API), I get just 619 entries.
179 entries are lost somewhere.
I tried another CardDAV client, and it gave me the same number of contacts. So, this problem is not specific to CalDav Synchronizer.
I suspect that Google Contacts prefilters entries that it can't present correctly in CardDAV.

On the other hand, GO Contact Sync Mod proposed by @Rubberduck2021 in https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/333#issuecomment-986990169 gives me 797 entries.
And it logs which 1 entry it can't sync and why.
So, I recommend the latter solution. Until this issue is resolved.

<!-- gh-comment-id:1029403106 --> @grv87 commented on GitHub (Feb 3, 2022): Note that disabling "Google native API" means that CardDAV is used. And not all Google Contacts are available via CardDAV. For example, I have 798 entries in Google Contacts now. When I sync them with Outlook via CardDAV (not using Native API), I get just 619 entries. 179 entries are lost somewhere. I tried another CardDAV client, and it gave me the same number of contacts. So, this problem is not specific to CalDav Synchronizer. I suspect that Google Contacts prefilters entries that it can't present correctly in CardDAV. On the other hand, GO Contact Sync Mod proposed by @Rubberduck2021 in https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/333#issuecomment-986990169 gives me 797 entries. And it logs which 1 entry it can't sync and why. So, I recommend the latter solution. Until this issue is resolved.
Author
Owner

@aluxnimm commented on GitHub (Mar 2, 2022):

Release 4.2.0 fixed autodiscovery for CardDAV and 400 error when testing the default addressbook https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/ and sets CardDAV as default in Google profiles again, please use that instead of native API, since we didn't have time yet to work on the new People API.

<!-- gh-comment-id:1057219810 --> @aluxnimm commented on GitHub (Mar 2, 2022): Release 4.2.0 fixed autodiscovery for CardDAV and 400 error when testing the default addressbook https://www.googleapis.com/carddav/v1/principals/userEmail/lists/default/ and sets CardDAV as default in Google profiles again, please use that instead of native API, since we didn't have time yet to work on the new People API.
Author
Owner

@filippobottega commented on GitHub (Mar 3, 2022):

Thank you very mutch @aluxnimm !!!

<!-- gh-comment-id:1057816031 --> @filippobottega commented on GitHub (Mar 3, 2022): Thank you very mutch @aluxnimm !!!
Author
Owner

@Stepan-H commented on GitHub (Mar 3, 2022):

Thank you too...
Sadly syncing Categories (Outlook) <=> Labels (Google) does not work.

<!-- gh-comment-id:1058542653 --> @Stepan-H commented on GitHub (Mar 3, 2022): Thank you too... Sadly syncing Categories (Outlook) <=> Labels (Google) does not work.
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#1220
No description provided.