phw198 / OutlookGoogleCalendarSync

Sync your Outlook and Google calendars
https://www.outlookgooglecalendarsync.com/
Mozilla Public License 2.0
1.8k stars 216 forks source link

For a few recurring events: "Updated event failed to save" - 403 Forbidden - Unhandled API Exception (GoogleCalendar.cs: Line 911) #1763

Closed luk4sschr0d3r closed 6 months ago

luk4sschr0d3r commented 8 months ago

OGCS Version: v2.10.0.0 Edition: Installed
Sync Direction: O<->G

Checklist:-

  • [ ] Upgrade to the latest release (alpha if available) latest release
  • [x] Reproduce the issue
  • [X] Complete the information below
  • [x] Provide your OGcalsync.log file (see how-to)

Bug Description

A few recurring events fail to be processed correctly.

Unhandled API exception Updated event failed to save. Forbidden [403=Forbidden]

Steps to Reproduce the Issue

Unknown.

Any other information


Log: FYI


2024-01-04 21:29:15,697 DEBUG  12 OutlookGoogleCalendarSync.Telemetry [228] -  GA4: {"client_id":"716811ce8453c1218d545b2eed288d4b","user_id":"XXXXXXX_____XXXXXXXXXX","non_personalized_ads":true,"user_properties":{"ogcs_version":{"value":"2.10.0.0"},"benefactor":{"value":"False"},"account_present":{"value":"True"},"profiles":{"value":"1"},"outlook_version":{"value":"16.0.0.17029"},"outlook_name":{"value":"O365BusinessRetail"},"continent":{"value":"Europe"},"country":{"value":"Germany"},"country_code":{"value":"DE"},"region":{"value":"North Rhine-Westphalia"},"city":{"value":"Düsseldorf"}},"events":[{"name":"error","params":{"api_google_error":"Google.Apis.Requests.RequestError\r\nForbidden [403]\r\nErrors [\r\n\tMessage[Forbidden] Location[ - ] Reas","code":403,"domain":"global","reason":"forbidden","message":"Forbidden"}}]}
2024-01-04 21:29:15,697 WARN  12 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [2036] -  Unhandled API exception.
2024-01-04 21:29:15,698 ERROR  12 OutlookGoogleCalendarSync.Console [292] -  Updated event failed to save.
2024-01-04 21:29:15,700 ERROR  12 OutlookGoogleCalendarSync.Console [292] -  Forbidden [403=Forbidden]
2024-01-04 21:29:15,742 ERROR  12 OutlookGoogleCalendarSync.OGCSexception [28] -  Google.GoogleApiException: Google.Apis.Requests.RequestError
Forbidden [403]
Errors [
    Message[Forbidden] Location[ - ] Reason[forbidden] Domain[global]
]

2024-01-04 21:29:15,744 ERROR  12 OutlookGoogleCalendarSync.OGCSexception [21] -  Code: 0x80131500,-2146233088; Location: MoveNext() in <Unknown File>
2024-01-04 21:29:15,744 ERROR  12 OutlookGoogleCalendarSync.OGCSexception [65] -     bei Google.Apis.Requests.ClientServiceRequest`1.<ParseResponse>d__35.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei Google.Apis.Requests.ClientServiceRequest`1.Execute()
   bei OutlookGoogleCalendarSync.GoogleOgcs.Calendar.UpdateCalendarEntry_save(Event& ev) in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\GoogleOgcs\GoogleCalendar.cs:Zeile 911.
   bei OutlookGoogleCalendarSync.GoogleOgcs.Calendar.UpdateCalendarEntries(Dictionary`2 entriesToBeCompared, Int32& entriesUpdated) in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\GoogleOgcs\GoogleCalendar.cs:Zeile 577.
2024-01-04 21:29:15,746 DEBUG  12 System.Windows.Forms.OgcsMessageBox [72] -  Sync item failed: Updated Google event failed to save. Continue with synchronisation?
2024-01-04 21:29:15,763 INFO  1 OutlookGoogleCalendarSync.Forms.Main [969] -  Application window restored.
2024-01-04 21:48:14,277 DEBUG  12 System.Windows.Forms.OgcsMessageBox [87] -  Response: Yes
2024-01-04 21:48:14,360 DEBUG  12 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [643] -  Processing >> 05.12.2023 15:30 (R) => "Subject (different) - X&AB 2.0 "
2024-01-04 21:48:14,362 DEBUG  12 OutlookGoogleCalendarSync.Recurrence [32] -  Creating Google iCalendar definition for recurring event.
2024-01-04 21:48:14,369 DEBUG  12 OutlookGoogleCalendarSync.Recurrence [48] -  RRULE:FREQ=WEEKLY;UNTIL=20240227T145500Z
2024-01-04 21:48:14,377 DEBUG  12 OutlookGoogleCalendarSync.Console [294] -  05.12.2023 15:30 (R) "Subject of Meeting - X&ZZ 2.0 "
2024-01-04 21:48:14,377 DEBUG  12 OutlookGoogleCalendarSync.Console [294] -  AttributeChangeRecurrenceRRULE:FREQ=WEEKLY;WKST=MO;UNTIL=20240227T143000... → RRULE:FREQ=WEEKLY;UNTIL=20240227T145500ZStart TimezoneAfrica/Ceuta → Europe/ParisEnd TimezoneAfrica/Ceuta → Europe/Paris
2024-01-04 21:48:14,393 DEBUG  12 OutlookGoogleCalendarSync.Console [294] -  3 attributes updated.
2024-01-04 21:48:14,658 DEBUG  12 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [890] -  Saving timestamp when OGCS updated event.
2024-01-04 21:48:15,051 FAIL  12 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [1911] -  Google.Apis.Requests.RequestError
Forbidden [403]
Errors [
    Message[Forbidden] Location[ - ] Reason[forbidden] Domain[global]
]
luk4sschr0d3r commented 8 months ago

This seems to be fixed in current alpha v2.10.2.0

luk4sschr0d3r commented 8 months ago

I have to take that back :( Sorry.

Still exists in alpha v2.10.2.0

image
luk4sschr0d3r commented 8 months ago

I believe that this event updated fine after value for Recurrence was modified (simplified and set to end on 9th Jan 2024)

image
phw198 commented 7 months ago

I'm a bit mystified on this one and can't replicate the issue with the information you provided.

I think if it crops up again, could you increase your logging level to FINE so I can see a bit more detail on the attributes that are changing and their full values.

The items that have a problem, are these being edited with the Outlook client, or with some other third party software?

github-actions[bot] commented 6 months ago

This issue has been marked dormant because the last update is at least 30 days ago. If no update is made with the next 7 days, the issue will be closed.