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

HTTP Error 401: Unauthorized (Fixed in v71)

Open nihil21 opened this issue 4 years ago • 31 comments

Hi, when pasting the authorization code into the plasmoid and clicking 'Submit', this message appears and obviously the calendar events from Google Calendar do not appear in the plasmoid.

I've installed the applet from KDE Plasma settings. My system information is the following:

  • Manjaro Linux x86_64
  • 5.8.18-1-MANJARO kernel
  • Plasma 5.20.2

nihil21 avatar Nov 10 '20 21:11 nihil21

I'm currently trying to fix a quota limit in #171 caused by a few users who haven't upgraded in a year. I plan to ship an update by Friday at the latest which should re-enable Google Calendar sync.

Zren avatar Nov 11 '20 00:11 Zren

Same issue here, thank you @Zren

RickSlashee avatar Nov 11 '20 20:11 RickSlashee

Thanks @Zren

nihil21 avatar Nov 12 '20 10:11 nihil21

Same issue currently running version: 69. Thanks for the update @Zren

TassieDevyl avatar Nov 12 '20 11:11 TassieDevyl

Same issue here as well. Thanks @Zren

meronogbai avatar Nov 12 '20 21:11 meronogbai

v71 with the updated API keys has been released. After updating, relog to restart plasmashell. It will then prompt you to login again to Google Calendar to sync the events. I'll be leaving this issue open as people will be googling this error for the near future.

Zren avatar Nov 13 '20 19:11 Zren

I can confirm it's working now. Thank you very much @Zren for your work!

nihil21 avatar Nov 13 '20 21:11 nihil21

Working again now. Thank you @Zren

TassieDevyl avatar Nov 13 '20 21:11 TassieDevyl

v71 working and so beautiful for it. Thanks, @Zren!

JillSwift avatar Nov 14 '20 03:11 JillSwift

It's working correctly for me too, but I get a 0 error display at the bottom (HTTP Error 0: Could not connect. Will try again soon). The functionality is there though.

david-cortes avatar Nov 16 '20 09:11 david-cortes

v. 71, worked yesterday, today I get HTTP Error 0: Could not connect. Will try again soon mistake, and no events from my Google calendar.

shonnubaradee avatar Nov 18 '20 10:11 shonnubaradee

I am getting

Authorization Error 
Error 401: invalid_client
The OAuth client was not found.

when trying to login - while getting code from browser

decoherencer avatar Nov 22 '20 13:11 decoherencer

Have you updated to v71 of EventCalendar then restarted plasma @decoherencer? All versions below v71 no longer work.

Zren avatar Nov 22 '20 16:11 Zren

Thanks zren, restart seems to have fixed it.

decoherencer avatar Nov 22 '20 20:11 decoherencer

Thanks zren, restart seems to have fixed it.

For future reference and for other users. You will have to update it via the GUI and restart plasmashell sudo systemctl restart sddm or as I prefer

sudo pkill plasmashell
plasmashell & disown

After this, right click on event calendar and reconfigure Google Calendar with a new key. Worked for me. No reboot required.

yuannan avatar Dec 13 '20 19:12 yuannan

Do I need a more recent version of KDE to install this version? On Fedora 32 with Plasma 5.18.5, and I just get "Install script failed".

rocketraman avatar Mar 08 '21 17:03 rocketraman

@rocketraman What specifically says "Install script failed"? At you referring to the status bar of the "Get New Widgets" popup? I do remember a KDE bug that caused an issue with the "Get New Widgets" dialog in older versions of Plasma.

You can download the .plasmoid from the KDE Store directly then run:

  • Upgrade: kpackagetool5 -t Plasma/Applet -u ~/Downloads/eventcalendar-v71.plasmoid
  • Install for the first time: kpackagetool5 -t Plasma/Applet -i ~/Downloads/eventcalendar-v71.plasmoid

Or install from GitHub: https://github.com/Zren/plasma-applet-eventcalendar#b-install-via-github

The sh ./install script just detects if it's already installed and uses -u or -i appropriately.

Zren avatar Mar 09 '21 05:03 Zren

Yes, it was the Get New Widgets dialog. Updating the .plasmoid using the download from the KDE store as per your instructions worked. Thanks!

rocketraman avatar Mar 09 '21 15:03 rocketraman

I downloaded v76 from KDE store and installed. But Google calender oauth link is still not working. I am getting Error 400: invalid_request. The auth link is: https://accounts.google.com/o/oauth2/v2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ftasks&response_type=code&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=391436299960-k0s16nm589meovhoblpcquqgbbrena17.apps.googleusercontent.com

sirish-bajpai avatar Dec 09 '22 06:12 sirish-bajpai

I downloaded v76 from KDE store and installed. But Google calender oauth link is still not working. I am getting Error 400: invalid_request. The auth link is: https://accounts.google.com/o/oauth2/v2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ftasks&response_type=code&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=391436299960-k0s16nm589meovhoblpcquqgbbrena17.apps.googleusercontent.com

Confirm issue, same version. My link: https://accounts.google.com/o/oauth2/v2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ftasks&response_type=code&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=391436299960-k0s16nm589meovhoblpcquqgbbrena17.apps.googleusercontent.com

small-hamster avatar Dec 13 '22 07:12 small-hamster

Same problem: Additional info from Google:

Error 400: invalid_request The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method. Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

chippyash avatar Dec 28 '22 09:12 chippyash

+1 on the issue

CamperSamu avatar Jan 11 '23 21:01 CamperSamu

+1 on this

jideogunmekan avatar Feb 09 '23 14:02 jideogunmekan

+1 on this, getting the out-of-band error message https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

VitoFe avatar Feb 24 '23 18:02 VitoFe

+1 for me it doesn't work also. I get the out-of-band error message. :-/

Super-T02 avatar Mar 19 '23 21:03 Super-T02

+1, @Zren could you fix it please🥲

0verwritten avatar Apr 29 '23 10:04 0verwritten

yup, not working for me image

lollilol avatar May 15 '23 16:05 lollilol

@lollilol i'm having the same problem... i quite bored haha

arthuresc avatar Oct 03 '23 15:10 arthuresc

I'm also having this same problem, please help us! Your plasmoid is very good!

gleyconJ avatar Oct 30 '23 14:10 gleyconJ

any updates?

NeoPrint3D avatar Jan 18 '24 02:01 NeoPrint3D