HTTP OAuth 2.0 Google Drive PPTX download fails after ~95 minutes despite offline access and consent

:bullseye: What is your goal?

Get reliable, unattended Google Drive PPTX downloads through Make HTTP OAuth 2.0, including automatic access-token renewal, without needing to reauthorise the existing connection every hour. Thanks for any input/advice, Richard.

:thinking: What is the problem & what have you tried?

Google Drive files.download successfully returns HTTP 200 and a valid downloadUri.

Immediately after OAuth reauthorisation, Make’s HTTP Download a file module successfully retrieves an approximately 18 MB PPTX.

Approximately 95 minutes later, the same module fails with InvalidConfigurationError: Unauthorized, although the preceding Google Drive API call still succeeds.

Reproduced with two different presentations.

Already configured:

  • Google OAuth app: In production
  • Scope: drive.readonly
  • Authorise parameters: access_type=offline, prompt=consent
  • Access token: Header, Bearer
  • Additional refresh-token parameters: blank

We have reauthorised and retested the same connection, checked the module mappings, and reproduced the failure without changing the configuration.

Could this be a refresh-token or Make HTTP OAuth renewal issue? How can we verify the refresh attempt and fix it permanently?

:clipboard: Error messages or input/output bundles

Successful run, shortly after reauthorisation

Google Drive files.download:

  • HTTP status: 200
  • Operation: done = true
  • Response: downloadUri present

HTTP Download a file:

  • Status: 200
  • PPTX binary: approximately 18 MB
  • Authentication: OAuth 2.0

Failed run, approximately 95 minutes later

Google Drive files.download:

  • HTTP status: 200
  • Operation: done = true
  • Response: downloadUri present

HTTP Download a file:

  • Error: InvalidConfigurationError
  • Message: Unauthorized
  • Binary output: none

Both runs use the same existing OAuth connection and URL mapping.

Sensitive tokens, connection identifiers, and client document IDs omitted.

The successful Drive step doesn’t necessarily confirm that the HTTP OAuth connection refreshed correctly, especially if the two modules use diferent credentials.

I’d test a simple Drive API request through the exact OAuth connection used by HTTP Download after the same 95-minute window. If that also fail with 401, I’d investigate the connection’s refresh behavior. If it succeeds, I’d generate a fresh downloadUri and test it immediately in the same run

That should help separate a token renewal problem from an issue with the download URL before changing the OAuth configuration

Hi Mahdi,

Thanks for the suggestion. We followed your advice and tested a simple Google Drive API request using the exact HTTP OAuth connection that handles the PPTX download, without reauthorising it first.

The request to GET https://www.googleapis.com/drive/v3/about?fields=user failed with:

  • HTTP 401: Unauthorized

  • Google error: Invalid Credentials

  • Status: UNAUTHENTICATED

  • Reason: authError

  • Location: Authorization header

This confirms that the problem isn’t specific to the PPTX download URL. The same OAuth connection is unable to authenticate a basic Google Drive API request after the elapsed period.

The connection has previously worked following manual reauthorisation, so token renewal or credential handling now appears to be the area requiring investigation. We haven’t established the precise cause yet.

We’ve preserved the execution evidence and are pursuing the issue with Make Support.

Thanks again for helping us narrow this down. Much appreciated.

Why are you downloading the file with the http module and not the Google drive module?

Hey, Stoyan. It’s an 18+MB Slides presentation which is above the Drive Module download limit which I think is 10MB.

Fair enough. You can update the share link so anyone with a link can download the file, then it shouldn’t need credentials.
Or you can check Sam’s guides on how to setup a Google connection, maybe you missed something, it sounds like it’s missing the refresh token.

Thanks, Stoyan. Appreciate you following this through.

We’ve independently confirmed that Make’s native Google Drive Download a File module fails on this approximately 18 MB Google Slides-to-PPTX export with HTTP 403, file too large.

We’ve also run a basic Google Drive API read through the separate HTTP OAuth connection, without involving the PPTX download URL. That returned HTTP 401 after the earlier authorisation, which points us towards the connection’s token renewal rather than the individual download URL.

The connection already specifies access_type=offline and prompt=consent, but as you suggest, that doesn’t establish whether Make actually received, retained, and successfully uses a refresh token.

We’ve now supplied that evidence to Make Support and requested an investigation of token issuance and automatic renewal.

Making the file publicly accessible isn’t suitable for our production confidentiality requirements.

Thanks again for the suggestions.