Why am I getting an error when downloading an audio file from Google Drive into a temporary directory?

This topic was automatically generated from Slack. You can find the original thread here.

I get an error when downloading an audio file from gdrive into a tmp directory.
The trigger before successfully recognizes that a new file is present.
But when attempting to download… fails… help.

Error

File not found: 2RPkE7njiIV5RaUYbaHXSi6xhTrkTKBFE.

DETAILS

    at Gaxios._request (/tmp/__pdg__/dist/code/1a41dc8911e5b149c41a8d3540d82ce2ba2f30cb882caa69f4766e00695afeac/node_modules/.pnpm/gaxios@6.1.0/node_modules/gaxios/build/src/gaxios.js:141:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at OAuth2Client.requestAsync (/tmp/__pdg__/dist/code/1a41dc8911e5b149c41a8d3540d82ce2ba2f30cb882caa69f4766e00695afeac/node_modules/.pnpm/google-auth-library@9.0.0/node_modules/google-auth-library/build/src/auth/oauth2client.js:382:18)
    at Object.getFile (file:///tmp/__pdg__/dist/code/1a41dc8911e5b149c41a8d3540d82ce2ba2f30cb882caa69f4766e00695afeac/code/google_drive.app.mjs:780:9)
    at Object.run (file:///tmp/__pdg__/dist/code/1a41dc8911e5b149c41a8d3540d82ce2ba2f30cb882caa69f4766e00695afeac/code/actions/download-file/download-file.mjs:92:26)
    at null.executeComponent (/var/task/launch_worker.js:229:22)
    at MessagePort.messageHandler (/var/task/launch_worker.js:726:28)

If you paste that ID in a Google Drive download url, does it work?

Ex: https://drive.usercontent.google.com/download?id=PUT_THE_ID_HERE

Otherwise, maybe the Google account you’re using in the step doesn’t have access to that file?