plasma-applet-eventcalendar icon indicating copy to clipboard operation
plasma-applet-eventcalendar copied to clipboard

Access blocked: KDE Event Calendar Widget’s request is invalid

Open cocoepiblas opened this issue 2 years ago • 30 comments

Operating System: KDE neon 5.26 KDE Plasma Version: 5.26.0 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Kernel Version: 5.15.0-52-generic (64-bit) Graphics Platform: X11 Event Calendar 76

When I want to synchronize with Google Calendar, the Google page tells me:

You can’t sign in because KDE Event Calendar Widget sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of KDE Event Calendar Widget, see error details. Error 400: invalid_request

I used the command:

sudo systemctl restart sddm

It looked like it was going to work, but it took me to the previous message above.

I have Event Calendar v.72 installed on Manjaro and Google Calendar works fine, Can I use the Google Calendar code for Manjaro on Neon? Where can I find the Google Calendar Manjaro code?

cocoepiblas avatar Oct 20 '22 21:10 cocoepiblas

I confirm the same error in Opnesuse and current version of widget downloaded from plasma widget browser

poltpolt avatar Oct 21 '22 09:10 poltpolt

Confirmed; same issue on Garuda. Reinstalled widget same result.

justinkellogg89 avatar Oct 21 '22 10:10 justinkellogg89

Looks like the authentication method being used before is now deprecated by Google and the following should be implemented instead: https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback

CAG2Mark avatar Oct 21 '22 19:10 CAG2Mark

Same problem.

image

lays147 avatar Oct 22 '22 18:10 lays147

Same issue here with Garuda Linux.

adamth0mps0n avatar Oct 22 '22 22:10 adamth0mps0n

image

"error details": image

"Learn more about this error": https://support.google.com/accounts/answer/12379384

It looks like Google started blocking OAuth flows in October 2022.

I had Event Calendar installed on a different machine before the requests were blocked, and Google Calendar still syncs on that calendar.

Both machines run Arch Linux.

mikhansd avatar Oct 23 '22 21:10 mikhansd

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work

The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc

In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

ksgremes avatar Oct 28 '22 12:10 ksgremes

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work

The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc

In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

Thanks for your help. In a previous installation I had in my disk with Manjaro, Event Calendar v.72 work with Google Calendar but this token does not appear. Event Calendar is not the last version and each version stores these data in a different way. What is your Event Calendar's version?

cocoepiblas avatar Oct 30 '22 12:10 cocoepiblas

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

JackDinn avatar Nov 05 '22 11:11 JackDinn

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

It's not trivial to fix. IIRC Google now requires clients like these to use a localhost server to retrieve the token.

Even if it were easy to fix, nobody has the obligation to fix it.

CAG2Mark avatar Nov 05 '22 11:11 CAG2Mark

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

It's not trivial to fix. IIRC Google now requires clients like these to use a localhost server to retrieve the token.

Even if it were easy to fix, nobody has the obligation to fix it.

Ok, i understand. So what should KDE users use for a simple tray calendar that syncs with google ATM? (not including anything that uses Akonadi which i dont like or use).

JackDinn avatar Nov 05 '22 11:11 JackDinn

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

It's not trivial to fix. IIRC Google now requires clients like these to use a localhost server to retrieve the token. Even if it were easy to fix, nobody has the obligation to fix it.

Ok, i understand. So what should KDE users use for a simple tray calendar that syncs with google ATM? (not including anything that uses Akonadi which i dont like or use).

What you ask could be useful, but in my case, what I would like to know should be something simple, and is where I locate the access token in my Manjaro, which has installed the EC v.72, to use it in my Neon EC v.76.

cocoepiblas avatar Nov 05 '22 22:11 cocoepiblas

My newly Manjaro KDE Installation has only this snippet on that file :(
[Containments][76][Applets][102][Configuration][Google Calendar] calendarList=W10= tasklistList=W10=

Angel-arruda avatar Nov 07 '22 14:11 Angel-arruda

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work

The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc

In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

Thank you a lot! It's worked for me. Fresh installation have only few lines like calendar List=W10= tasklist List=W10= But old config file has tons of info that should be copied into new one.

Vigilaterr avatar Nov 15 '22 02:11 Vigilaterr

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

Thank you a lot! It's worked for me. Fresh installation have only few lines like calendar List=W10= tasklist List=W10= But old config file has tons of info that should be copied into new one.

Access tokens periodically expire and become invalid credentials for a related API request. - https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback

mottasystem avatar Nov 18 '22 12:11 mottasystem

Please make a fix

Linux-Alex avatar Nov 25 '22 23:11 Linux-Alex

Same problem. Please, make a fix.

ak1ra26 avatar Nov 29 '22 06:11 ak1ra26

Confirmed same issue I don't appear to have a backup of my token. This was one of my favorite tools also.

etoven avatar Dec 06 '22 01:12 etoven

It's happened to me on my fresh install this plugin.

dwijonarko avatar Dec 07 '22 07:12 dwijonarko

Still no fix, Garuda Linux

sometimesabird avatar Feb 07 '23 19:02 sometimesabird

This plasma applet has not been updated since May 2022, which means the developer is not able/willing to devote more time for this project. There's no point in repeating here that this problem has not been fixed; instead, we apparently need a fork that will be developed more actively, for instance, by some of the existing 34 contributors. I also suggest trimming it down to make it a bit easier to maintain, e.g. by excluding weather etc. for which there are already individual applets working very well, and keeping only Google Calendar integration plus displaying date and time in a customizable format.

Sadi58 avatar Feb 08 '23 09:02 Sadi58

Apart from the fact that the KDE applet is completely overloaded with information - I've already uninstalled it again - I'm looking for a reasonable way to easily enter Google calendar entries without a web browser on the Linux desktop (here Debian 11 with KDE Plasma). so that they also appear on smartphones. Is there a suitable software for Linux and KDE?

Linuxmaker avatar Mar 08 '23 07:03 Linuxmaker

@Linuxmaker This one maybe? https://apps.kde.org/kalendar/

Sadi58 avatar Mar 08 '23 07:03 Sadi58

@Linuxmaker This one maybe? https://apps.kde.org/kalendar/

Thanks for the URL

Linuxmaker avatar Mar 08 '23 08:03 Linuxmaker

Here is a fix:

  1. git clone https://github.com/gaganpreet/plasma-applet-eventcalendar.git eventcalendar
  2. cd eventcalendar
  3. git checkout google-calendar-fix
  4. sh ./install

use sh ./uninstall for uninstallation.

Quoteme avatar Aug 16 '23 05:08 Quoteme

This plasma applet has not been updated since May 2022, which means the developer is not able/willing to devote more time for this project. There's no point in repeating here that this problem has not been fixed; instead, we apparently need a fork that will be developed more actively, for instance, by some of the existing 34 contributors. I also suggest trimming it down to make it a bit easier to maintain, e.g. by excluding weather etc. for which there are already individual applets working very well, and keeping only Google Calendar integration plus displaying date and time in a customizable format.

I use the weather info next to the calendar to book appts. That would have been unfortunate for me to do away with it.

etoven avatar Nov 29 '23 01:11 etoven

I use the weather info next to the calendar to book appts. That would have been unfortunate for me to do away with it. @etoven Good point. If it can be maintained as it is, fine. My suggestion was just an idea to make it simpler to maintain by focusing on its main function. BTW I use a weather widget on both sides of the Event Calendar as shown below, but I don't have too many appointments as a retired person. ;-) Screenshot_2023-11-29_10-41-09

Sadi58 avatar Nov 29 '23 07:11 Sadi58

Here is a fix:

1. `git clone https://github.com/gaganpreet/plasma-applet-eventcalendar.git eventcalendar`

2. `cd eventcalendar`

3. `git checkout google-calendar-fix`

4. `sh ./install`

use sh ./uninstall for uninstallation.

I think it is still broken.

codemeleon avatar Dec 17 '23 12:12 codemeleon

@codemeleon Try this - after installing golang - I've been using it for a long time now: https://github.com/kanocz/plasma-applet-eventcalendar

And there's also this new update, which I haven't tried yet: https://github.com/ALikesToCode/plasma-applet-eventcalendar

Sadi58 avatar Dec 17 '23 13:12 Sadi58

@Sadi58, Thanks. I Noticed that allowing via Firefox fails. However, allowing through chromium based browser works.

codemeleon avatar Dec 17 '23 14:12 codemeleon