Hey Makers
Are you running into the “Failed to verify connection. Status Code Error: 400” error in your scenarios featuring Gmail or Google Drive modules? We’ve got some tips to help you overcome it.
Understanding the issue
Due to Google’s updated security policy, unpublished apps can only have a 7-day authorization period. After the OAuth security token expires, the connection is no longer authorized and any module relying on it will fail.
Preventing Google connection expiration
To prevent your Google connection from expiring, you can opt for any of the three options described below.
Option 1: Opt for a paid Google plan (Google Workspace).
Option 2: Update the publishing status.
If you are @gmail.com or @googlemail.com user, you need to create an OAuth client on the Google Cloud Platform to set up your connection.
→ You can find more information on how to do that here: Connecting to Google services using custom OAuth client
To avoid weekly reauthorization, you can update the publishing status of your project in Google Cloud Console.
-
If your project is in “Testing” status, reauthorization is required weekly. To avoid this, update the project status to ‘In production’.
-
If your project is in “In production” status, it does not require weekly reauthorization.
To update the status of your project, log into the Google Cloud console, navigate to the “OAuth consent screen,” and click the “Publish app” button next to your Make app.
If you see the notice “Needs verification” once you’ve published your app, you can choose whether to go through the Google verification process for the app or to connect to your unverified app.
When setting your status to “In production”, you don’t need to register as a test user.
You will get a warning when creating your connection but you can proceed anyway by selecting “Show advanced” > “Go to integromat.com”.
For more information on publishing statuses, check out the “Publishing status” section of Google’s Setting up your OAuth consent screen help.
Important
Currently, connecting to unverified apps is possible in Make. However, we cannot guarantee that Google will indefinitely allow connections to unverified apps.
Option 3: Manually reauthorize the connection every week.
→ Navigate to the “Connections” tab under your Make account, click “Verify”, and then hit “Reauthorize”.