Google Auth - Error 400: invalid_requiest

What Operating System?

Ubuntu 18.04

What is the problem?

If I try to set a label and I put the google URL on the Browser I got the message:
Error 400: invalid_request

You can’t sign in to this app because it doesn’t comply with Google’s OAuth 2.0 policy for keeping apps secure.

If you’re the app developer, make sure that these request details comply with Google policies.

  • redirect_uri: urn:ietf:wg:oauth:2.0:oob

What did you already try to solve it?

I tried to deploy a new OAuth 2.0 Client ID, it doesn’t help.

Complete Logs

There isn’t a problem on the server side.

Additional information

Maybe someone knows how to fix this.

In my case I need to go into OAuth app and

Edit permissions activating all the API in the scope

same problem. I tried the solution above, but not resolved. Any alternative?

Please send me any other way to contact you, Telegram preffered.

Has anyone got a working fix yet, my plex server had to be reinstalled and using the PTS and original plexdrive app, I have this issue.

Error 400

in another thread there is a fix… copied as below…

If you ssh into your machine and type “gcloud init --console-only”, it will let you sign into your account without the web browser installed. From there you can go back into pts setup and continue as usual.

Yes that should do the trick:

  1. Run the following commands, one at a time:
sudo apt-get install apt-transport-https ca-certificates gnupg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install google-cloud-sdk -y
  1. Run the following command:
gcloud init --console-only

Follow the prompts:

Welcome! This command will take you through the configuration of gcloud.

...

You must log in to continue. Would you like to log in (Y/n)?  Y

Go to the following link in your browser:

https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=32...X4&code_challenge_method=S256
  1. Log into your Google account and approve the access request:

    Copy the verification code.
  2. Continue in the terminal:
1 Like

Every 7 days i need to refresh my tokens trough PG menu, and i havent figured out to get around this - very frustrating :frowning:

Tried alle solutions in this thread, i did get pass to not being able to access my google drives at all, by changing the API scopes suggested, but it still needs me to refresh my tokens.

Any ideas or help would be very welcome? :slight_smile:

Has anyone managed to get this working, I’ve tried with the scope changes, as well as using the “gcloud init --console-only” token but no luck, getting the below error

2022/05/31 16:44:33 Failed to create file system for “gdrive:”: drive: failed when making oauth client: failed to create oauth client: invalid character ‘:’ after object key:value pair
2022/05/31 16:44:33 Failed to create file system for “gdrive:/plexguide”: drive: failed when making oauth client: failed to create oauth client: invalid character ‘:’ after object key:value pair
2022/05/31 16:44:33 Failed to create file system for “gdrive:”: drive: failed when making oauth client: failed to create oauth client: invalid character ‘:’ after object key:value pair

Getting this error too out of the blue. And probably breaking it all worse trying to fix it.

the only way so far. that i have tested that works. if either. just runing gcloud init --console-only on it’s own. seem to work. or if you reconfig the remotes. you will need another linux server. or install linux vm on windows 10.which can be done in the app store.other wise you will need to install a VM on your machine. then all you run on the other machine. it will ask something like rclone authorize "drive" " a lot of crap here that you need to also copy"

hello friends I am resetting my plexguide to another server but I have a problem here:
[1] Client ID & Secret [ACTIVE]
[2] GDrive [NOT-SET]

in option 2

I get the link but it gives me an error in the browser. error 400 Error 400: invalid_request.
now i cant download my backup plz i need help, help

Is there any further advice?

I have successfully followed the steps above, and connected to my Google account successfully, but I’m still getting the error 400. Is there another way to configure rClone?

I can’t find the way, nobody in this group knows anything?