Skip to main content

"Access blocked: This app's request is invalid" (Error 400: redirect_uri_mismatch) with your own client ID — Fix for Google Drive

· 9 min read
Steve
Senior Engineer
Quick answer
  • Google rejects the sign-in because the OAuth client you created does not accept the address rclone sends back to, http://127.0.0.1:53682/. Usually the client was created as a "Web application" instead of a Desktop app.
  • Fix: create a new Desktop app client (or add http://127.0.0.1:53682/ to the Web client's authorized redirect URIs), paste the new client_id and client_secret into RcloneView, and sign in again. About six steps, no terminal.
  • Adding and editing the remote is Free. A scheduled backup on top of it uses Job Scheduling (PLUS).

You did the right thing: RcloneView warned that your Google Drive remote used rclone's shared client ID, so you made your own in the Google Cloud console. You pasted the ID and secret, clicked Save, and instead of Google's consent screen the browser says "Access blocked: This app's request is invalid" with "Error 400: redirect_uri_mismatch". Nothing is wrong with your Drive or with RcloneView; one setting on the Google side needs changing.

What "Access blocked: This app's request is invalid" means​

When you save a Google Drive remote, RcloneView's built-in rclone starts a sign-in. It opens Google's page in your browser and asks Google to send the result back to a small listener on your own computer. rclone prints that address in its log: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config (rclone forum).

Google checks that address against the OAuth client whose ID you entered. As of December 2026, Google's OAuth guide for desktop apps says the redirect URI must exactly match one of the client's authorized redirect URIs, and that redirect_uri_mismatch also appears when the redirect URI is not valid for the client type. A loopback address like http://127.0.0.1:port is the method Google describes for desktop clients.

So the error is about the client you created, never about your Drive files. With an empty client_id, rclone uses rclone's shared client ID, which is why the remote signed in before you changed it. RcloneView does not ship a Google client ID of its own.

Causes and fixes​

CauseHow to checkFix
The client was created with the application type "Web application" and no redirect URIGoogle Cloud console > Clients: the client's type is Web applicationCreate a Desktop app client (Step 3), or add the redirect URI (Step 4)
The redirect URI on a Web client is not exact: https, localhost, a missing port or trailing slashThe listed URI differs from http://127.0.0.1:53682/Change it to exactly http://127.0.0.1:53682/ (Step 4)
The client ID in RcloneView belongs to another client or projectThe client_id in Show advanced options doesn't match the client you editedCopy Client ID and Client secret from the same client again (Step 5)
The sign-in runs on another machine (rclone on a server)You use an external rclone, not the built-in oneSee the FAQ below; the redirect needs a browser on the machine running rclone

Fix it step by step​

Step 1 — Find the client ID the remote uses​

  1. On the Remote tab, click Remote Manager, then click Edit on the Google Drive remote's card.
  2. Click Show advanced options.
  3. Note the value in client_id. It ends in .apps.googleusercontent.com.

You should now see the ID you will look for in the Google Cloud console.

Step 2 — Check the client's type in the Google Cloud console​

  1. Sign in to the Google Cloud console and select the project you created the client in.
  2. Open Clients in the left panel, the page where you created the client.
  3. Find the client with that ID and open it.

You should now see whether it is a Desktop client or a Web application client. A Web client is the usual cause; the user in the original forum thread was told to set the redirect URI to http://127.0.0.1:53682/.

This is what rclone's guide and our Use Your Own Google Drive Client ID guide use.

  1. In Clients, create a new client. On the Create OAuth client ID page, set Application type to Desktop app. The default Name is fine.
  2. Click Create.
  3. In the OAuth client created dialog, copy the Client ID and Client secret, or click Download JSON, then click OK. The secret can't be viewed again after you close the dialog.

You should now see the new Desktop client in the list. Delete the old Web client later, once the remote works.

Step 4 — Path B: add the redirect URI to the Web client​

Use this if you want to keep the existing Web application client.

  1. Open the client and find its authorized redirect URIs.
  2. Add this value exactly, with http, the IP address, the port and the trailing slash:
http://127.0.0.1:53682/
  1. Save the client.

You should now see the URI listed on the client. Its ID and secret stay the same, so skip to Step 6.

Step 5 — Paste the new ID and secret into RcloneView​

  1. Open the remote's Edit Remote dialog again (Step 1) and click Show advanced options.
  2. Replace client_id and client_secret with the values from Step 3. Copy both from the same client.
  3. Click Save.

Setting up a new remote instead? Click New Remote on the Remote tab, choose Google Drive, enter a Remote name, then fill in the same two fields under Show advanced options before you click Add Remote. While client_id is empty, the form shows the shared client ID notice:

Add Google Drive form with the remote name Team Drive, the notice about rclone's shared client ID and the How to create your own client ID link

You should now see your browser open Google's sign-in page.

Step 6 — Sign in again​

  1. Sign in with the Google account that owns the Drive. If your consent screen's audience is External and the app is in Testing, the account must be on the app's test user list.
  2. If Google shows an "unverified app" warning, click Advanced, then Go to rclone (unsafe); Google shows the app name you chose.
  3. Allow access.

You should now see rclone's success page in the browser. Close the tab and return to RcloneView.

Confirm it's fixed​

  • The remote opens in an Explorer pane and lists your Drive folders.
  • Open Edit Remote again: with client_id filled in, the shared client ID notice no longer appears.
  • Run a small test, for example a Copy of one folder with Dry run first, and check the result in Job History.
RcloneView app preview

Sign in with your own Google client ID

RcloneView shows when a Google Drive remote still uses the shared client ID and takes your client_id and client_secret in a form, not rclone config prompts.

  • Notice on remotes with an empty client_id
  • client_id and client_secret in advanced options
  • Free on Windows, macOS and Linux
WindowsmacOSLinux
Get Started Free →

Free core features. Plus automations available.

Prevent it next time​

  • Pick Desktop app for rclone clients. Google's desktop-app guide describes the loopback address as the redirect method for that client type, so there is no redirect URI to type wrong.
  • Watch the Testing expiry. rclone's docs note that while the app stays in Testing, Google's grant expires after about a week. A remote that worked last week and now fails to refresh needs a new sign-in, not a new client; see Fix Expired OAuth Tokens.
  • Know when a backup stops. If a Job Scheduling (PLUS — included in the 14-day free trial) job backs up this Drive every night, an expired sign-in makes it fail. Email Notifications through your own SMTP server are free; the RcloneView Email Relay (PLUS) sends them without SMTP setup.

FAQ​

Can I go back to the shared client ID for now? Yes: clear client_id and client_secret and sign in again. On November 26, 2026 rclone's author announced that Google will keep the shared client ID but rate-limit it heavily from April 1, 2027, so treat this as temporary.

My browser says it can't connect to 127.0.0.1:53682. That is a different problem: the browser runs on another machine than rclone. A user on the rclone forum was told to run the browser on the machine where rclone runs, or use rclone's remote setup. With RcloneView's built-in rclone, the browser opens on your own computer.

Does the Google account in the console have to own the Drive? No. rclone's guide says any Google account can create the client; the Drive's owner signs in at Step 6.

Still stuck?​

Collect a log: Settings > Embedded Rclone > turn on Enable rclone Logging, set Log level to DEBUG, click Restart Embedded Rclone, try the sign-in again, then use Open log folder to find the file. Post it with the client ID and secret removed on the RcloneView forum.

What's free and what needs PLUS​

  • New Remote, Edit Remote, Show advanced options and the shared client ID notice: Free.
  • Copy jobs run by hand, Dry Run and Job History: Free.
  • Email Notifications with your own SMTP: Free.
  • Job Scheduling: PLUS.
  • RcloneView Email Relay: PLUS.

PLUS features are included in the 14-day free trial. See pricing.

Next step​

If you have not finished the consent screen and scopes yet, follow Use Your Own Google Drive Client ID from Step 2; it covers every screen in order.

Download RcloneView — free on Windows, macOS and Linux.

Sources: rclone: Making your own client_id · Google: OAuth 2.0 for iOS & Desktop Apps · rclone forum: redirect URL notice · rclone forum: Access blocked thread


Related Guides:

Supported Cloud Providers

Local Files
WebDAV
FTP
SFTP
HTTP
SMB / CIFS
Google Drive
Google Photos
Google Cloud Storage
OneDrive
Dropbox
Box
MS Azure Blob
MS File Storage
S3 Compatible
Amazon S3
pCloud
Wasabi
Mega
Backblaze B2
Cloudflare R2
Alibaba OSS
Ceph
Swift (OpenStack)
IBM Cloud Object Storage
Oracle Cloud Object Storage
IDrive e2
MinIO
Storj
DigitalOcean Spaces