outlookcaldavsynchronizer icon indicating copy to clipboard operation
outlookcaldavsynchronizer copied to clipboard

Google Contacts not sincyng since last 2 days (API change?)

Open carlos-48 opened this issue 2 years ago • 23 comments

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

carlos-48 avatar Oct 07 '21 05:10 carlos-48

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

itsolon avatar Oct 07 '21 21:10 itsolon

Same Here as well

JFAlbrecht avatar Oct 08 '21 07:10 JFAlbrecht

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

dust0vich avatar Oct 08 '21 15:10 dust0vich

same issue on multiple pc

BoGnY avatar Oct 11 '21 13:10 BoGnY

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

krystofkrticka avatar Oct 11 '21 14:10 krystofkrticka

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.

filippobottega avatar Oct 13 '21 13:10 filippobottega

Same issue for me:

Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/contacts/[email protected]/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()

HyP3r- avatar Oct 19 '21 19:10 HyP3r-

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.

aluxnimm avatar Oct 20 '21 08:10 aluxnimm

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

filippobottega avatar Oct 21 '21 08:10 filippobottega

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.

Rubberduck2021 avatar Dec 06 '21 17:12 Rubberduck2021

@Rubberduck2021 me too! Thank you for your suggestion!

filippobottega avatar Dec 06 '21 18:12 filippobottega

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

jpickerell avatar Dec 06 '21 22:12 jpickerell

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.

felipelrz avatar Dec 11 '21 14:12 felipelrz

@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.

mneiger avatar Dec 12 '21 18:12 mneiger

@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.

Vivsim avatar Jan 07 '22 21:01 Vivsim

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

JReming85 avatar Jan 11 '22 19:01 JReming85

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... 😥

Stepan-H avatar Jan 20 '22 21:01 Stepan-H

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

JReming85 avatar Jan 21 '22 00:01 JReming85

@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 😭

BoGnY avatar Jan 28 '22 10:01 BoGnY

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.

grv87 avatar Feb 03 '22 21:02 grv87

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.

aluxnimm avatar Mar 02 '22 18:03 aluxnimm

Thank you very mutch @aluxnimm !!!

filippobottega avatar Mar 03 '22 08:03 filippobottega

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

Stepan-H avatar Mar 03 '22 22:03 Stepan-H