quantumsheep / myges-cli

CLI for MyGES
MIT License
28 stars 4 forks source link

Google Calendar - 400 API error #20

Open imtomjorge opened 2 years ago

imtomjorge commented 2 years ago

I am currently experiencing a problem with the authorization code retrieval link. Once the JSON file is downloaded, and the "client_id" and "client_secret" data is extracted, the URL communicating the authorization code, returns the following error: Capture d’écran 2022-04-26 à 18 13 48 The application type is properly defined as "Desktop app", but the issue still persists.

Technical env: X86 VM + Debian Bullseye + NPM/NodeJS installed from source. I created a new project, and defined the application as "published.

Nouuu commented 2 years ago

Sometime, the url showed in console may break (due to line break) and open incomplete link, this result to an error when you trying to authorize. Be sure to copy and open the entire link and tell me if it works again ;-)

imtomjorge commented 2 years ago

Thanks for your answer. I've tried again with multiple SSH clients, and the issue persists even with a specific windows size and a "one-line" link.

imtomjorge commented 2 years ago

FYI: I've also tried with another VM and another ssh client, but the issue remain the same. Let me know if you need further details to debug! :)

imtomjorge commented 2 years ago

Did you find out what the main problem was?

christian-vdz commented 2 years ago

I'm having the same issue. Did you find anything to fix this? I noticed that I don't have urn:ietf:wg:oauth:2.0:oob in the redirect_url list from downloaded credentials.json, is this the cause of this issue? I didn't find a way to edit the redirect urls in Google cloud console.

quantumsheep commented 2 years ago

@Nouuu any idea on this ?

Nouuu commented 2 years ago

Tried to reproduce this issue but still not found

imtomjorge commented 2 years ago

Tried to reproduce this issue but still not found

Do you need further details from my side? I can provide more information, just in case! :)