kewisch / gdata-provider

Provider for Google Calendar
https://addons.thunderbird.net/thunderbird/addon/provider-for-google-calendar/
Other
239 stars 32 forks source link

Calendars Fail to Enable/Sync After Upgrade to 115.3.0 #768

Closed jmangum closed 3 months ago

jmangum commented 3 months ago

Describe the problem and steps to reproduce it:

After upgrade to gdatda-provider 115.3.0 with TB 115.11.0 my subscribed google calendars, which I have used with gdata-provider for many years, fail to enable/sync. When viewing my calendars in TB, my two google calendars show status "ENABLE". When I click ENABLE the calendar briefly displays, but then switches back to ENABLE and disappears.

What happened?

Calendars no longer display, enable, or sync.

What did you expect to happen?

Anything else we should know?

Looking at the console, I see the folliwng when I try to enable a calendar:


Calendar: CalDAV: send (PROPFIND https://apidata.googleusercontent.com/caldav/v2/jgmangum%40gmail.com/events/): <?xml version="1.0" encoding="UTF-8"?>
<D:propfind xmlns:D='DAV:' xmlns:C='urn:ietf:params:xml:ns:caldav' xmlns:CS='http://calendarserver.org/ns/'><D:prop><D:resourcetype/><D:owner/><D:current-user-principal/><D:current-user-privilege-set/><D:supported-report-set/><C:supported-calendar-component-set/><CS:getctag/></D:prop></D:propfind> [CalDavRequest.jsm:126](resource:///modules/caldav/CalDavRequest.jsm)
Calendar: CalDAV: recv: <?xml version="1.0" encoding="UTF-8"?>
<errors xmlns="http://schemas.google.com/g/2005">
 <error>
  <domain>GData</domain>
  <code>notFound</code>
  <internalReason>Not Found</internalReason>
 </error>
</errors>
[CalDavRequest.jsm:145](resource:///modules/caldav/CalDavRequest.jsm)
[calCachedCalendar] replay action failed: <unknown>, uri=https://apidata.googleusercontent.com/caldav/v2/jgmangum%40gmail.com/events/, result=2147500037, operation=[xpconnect wrapped calIOperation]

​```
kewisch commented 3 months ago

It appears you are using CalDAV, and not the Provider for Google Calendar. Make sure to select Google Calendar when subscribing to the calendar.

jmangum commented 3 months ago

I have done some more investigation of this issue. I have been using this add-on for many years to interact with my google calendars via Thunderbird. Recently (seemingly associated with the most recent upgrade to this add-on) I found that two of the three calendars that I use this add-on with failed to enable (see above). The two that are failing are associated with one gmail account, while the third, which is not affected, is associated with a second gmail account.

Then I look at the settings for the Thunderbird calendars that fail to enable, their Location setting is as follows: https://apidata.googleusercontent.com/caldav/v2/jgmangum... If I try to create a new calendar in Thunderbird which connects to one of the two failed calendars with the gdata-provider, I can get it to connect properly to the intended gmail calendar, but the Location setting looks different: googleapi://jgmangum@gmail.com/?calendar=jgmangum...

I should note that the new instance of this google calendar does not allow me to add outlook invitations (which might be a separate issue...).

Sorry for any confusion in my previous post.

kewisch commented 3 months ago

No worries! The googleapi:// calendars are via the Provider for Google Calendar. For invitations to work, you need to enable a few settings in the add-on preferences and should then re-subscribe to the calendars. Note however due to the Thunderbird code invitations are a bit finicky and might cause some issues. I'd recommend keeping invitations notifications off for a bit while you test things.

For invitations, I'd generally recommend to use the "Automatically add invitations to my calendar" feature in the Google Calendar web settings, and not interact with invitation emails through Thunderbird.

Feel free to file a new issue if you run into any other bugs!