kewisch / gdata-provider

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

Error in "Provider for Google Calendar" plugin. After successfully adding google calendar, not able to view google calendar events in thunderbird 78.4.0 #124

Closed ph411 closed 3 years ago

ph411 commented 4 years ago

Describe the problem and steps to reproduce it:

Using thunderbird 78.4.0. After successfully adding google calendar, everything seems to work fine. But after a few days, whenever i open thunderbird calendar, it simply doesn't show the events. The whole calendar looks empty. The calendars list on the left pane shows all the calendars, but none of the events in my google calendar is shown. Not even one!

2020-10-29

What happened?

This seems to be a problem associated with the "provider for google calendar" plugin, as this issue doesn't affect ics calendars (not shown in this picture).

What did you expect to happen?

We expect lightning to display all google calendar events every time we open TB 78.4.0. As a workaround mentioned in many places, I tried disabling & re-enabling the plugin, uninstalling & re-installing the plugin, show/hide the google calendars from the calendar list, etc. Even though they solve the problem temporarily, the problem re-appears after a few days & we have to repeat the steps again & again.

Anything else we should know?

Any good workaround or a permanent solution is welcome!

ph411 commented 4 years ago

Kindly note that this issue is not related to #119 which appears when we try to add google calendar for the first time. This issue #124 appears after we successfully add google calendar & start using TB calendar.

veN1337 commented 4 years ago

I am experiencing the same issue. For me this happens after every restart of Thunderbird.

ph411 commented 4 years ago

I get this issue after every 10 or 20 restarts of thunderbird! To fix it temporarily, i just disable/enable the addon. It's annoying, but thats the only reasonable workaround at this time. :(

andyross63 commented 4 years ago

Instead of stopping/starting, you can also go into Events and Tasks, then Calendar (or just Ctrl-Shift-C), and then click just to the right of the calendar name to hide/unhide it. Hard to tell if it's a Provider or TB bug.

ph411 commented 4 years ago

Instead of stopping/starting, you can also go into Events and Tasks, then Calendar (or just Ctrl-Shift-C), and then click just to the right of the calendar name to hide/unhide it. Hard to tell if it's a Provider or TB bug.

That works. But only for a while.

andyross63 commented 4 years ago

From comments on the add-on page, what seems to help is to uninstall it from TB. Download the .XPI file with a browser, then restart TB and install the XPI file. https://addons.thunderbird.net/user-media/addons/_attachments/4631/provider_for_google_calendar-78.0.1-tb.xpi?filehash=sha256%3Ac5c3e6d735afca631b44a3aedfe2d5cc717fd3ec66dada848b5eb7e9d3193235

After doing this, I closed and re-opened TB, and the calendars were un-hidden.

ph411 commented 4 years ago

Ur right. It solves the problem. But the issue re-appears after a while. Esp. in a day, or two utmost.

ph411 commented 4 years ago

After browsing the forum, found out this issue is very similar to or probably the same as #120 & #113.

hawkina commented 4 years ago

A friend of mine had the same issue with Thunderbird 78 64 bit, while my 32 bit was fine. Not sure if this is related. In her case, no new updates were shown. She created a new appointment in the calendar and all the other calender entries reapeared then.

andyross63 commented 4 years ago

Just a note that it has been 5 days since I uninstalled/reinstalled the add-on, and it's still working properly.

ph411 commented 4 years ago

@andyross63 & @hawkina, I tried the fix you mentioned. It worked fine for 3 days & the problem then re-appeared. This appears to be a temporary fix. I feel we actually need a long term solution to this problem.

RgnKjnVA commented 3 years ago

FWIW exact same issue here. Local calendar displays events fine at start up but all my google calendar events are hidden when Thunderbird starts up. Appears to be working for me immediately after doing so. We'll see if it lasts.

Windows 10 Thunderbird 78.6.1 Provider for Google Calendar 78.0.1 is my only add-on All impacted calendars are on google

mdforti commented 3 years ago

I have been having the same issue for long time now. tried the solution by @andyross63 with no luck. thunderbird 78.12 fresh install but this has been around for long now, probably since a couple updates. Is there a definite solution somewhere ?

I have a thunderbird 68 install in the office where everything works fine.

EDIT: after inspecting error console, I find this message:

NS_ERROR_NOT_AVAILABLE: ActivityManager.jsm:127
    getActivity resource://gre/modules/ActivityManager.jsm:127
    removeActivity resource://gre/modules/ActivityManager.jsm:80
    onFolderRemovedFromQ resource:///modules/activity/autosync.jsm:244
    _timerCallback resource:///modules/AppIdleManager.jsm:30
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://play.google.com/log?format=json&hasfast=true&authuser=0. (Reason: CORS request did not succeed).`

and

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://signaler-pa.clients6.google.com/punctual/multi-watch/channel?gsessionid=Wd4J0KCXkITW8HJOmDt42lT0ide04PV62b_0GZ7Nklk&key=AIzaSyAqeqEBGxTXZXOnu2gUrYCz9hsfKUr45vU&VER=8&RID=rpc&SID=n-IHE4ffjAKB2XgOgzSARQ&CI=0&AID=22&TYPE=xmlhttp&zx=sdr6yuyy8db0&t=3. (Reason: CORS request did not succeed).

when going to the link, I find a 400 error

Your client has issued a malformed or illegal request.

and on the second link:

Your client has issued a malformed or illegal request. Unknown SID

thank you for the help.

andyross63 commented 3 years ago

As far as I know, this should be fixed. I have had no problems for quite awhile. It was a bug with TB, not the provider plugin. About the only bug is it may continue to show the 'busy' cursor, but going out of and into calendar will clear it.

mdforti commented 3 years ago

Thank you for the response @andyross63 , however, this is totally happening to me now. I made an update yesterday and this started.

One more detail: the page for the addon says it works for tb 78.2 but 78.12 was installed by the update. I tried to downgrade tb but, once again, the tb profile is not back compatible with previous 78 versions which is actually another issue.

mdforti commented 3 years ago

I have been running some tests. the addon works with thunderbird 78.12 on a fresh profile. this is annoying because I have several accounts and it means I have to reinstall all accounts ! Does someone know how to shortcut the creation of totally fresh profile ?

andyross63 commented 3 years ago

Google is your friend. Lots of hits on how to copy and move profiles: https://www.google.com/search?client=firefox-b-1-d&q=copy+thunderbird+profile

mdforti commented 3 years ago

thanks for the suggestion @andyross63 , However, copying profiles is not exactly what needs to be done, but I needed to copy the accounts to a new fresh profile. this search : https://duckduckgo.com/?t=ffab&q=thunderbird+copy+mail+accounts+from+one+profile+to+another&atb=v217-1&ia=web leads to this forum:

https://support.mozilla.org/en-US/questions/1132712

which gave me the clue: I made a new profile and then copied the prefs.js and abook* files from the old profile. calendars seem to be working now, but some minor preferences were broken columns, views etc) and I am not sure about what has happened to the address books, lets see if I can work as I used after this.

Thank you for all the help !

fthx commented 3 years ago

FYI Thunderbird 91 beta handles Google Contacts & Calendar natively. You chose your subscriptions at account creation. It works, as far as I tested. Uses carddav and caldav, as I did before manually.

kewisch commented 3 years ago

This issue was IIRC fixed in Thunderbird, if you were having issues before please check out Thunderbird 91 with the Provider for Google Calendar.