This topic was automatically generated from Slack. You can find the original thread here.
Hey, having some issues with the drive download component atm
This topic was automatically generated from Slack. You can find the original thread here.
Hey, having some issues with the drive download component atm
This is what Im looking at right now, and this returns a 400
Im using the api’s client.runAction method to invoke this
"code": 400,
"status": 400,
"name": "Error",
"message": "Request failed with status code 400",
"stack": "Error: Request failed with status code 400\n at Gaxios._request (/tmp/__pdg__/dist/code/405eca4545020dbdfb0ea35d57723626821c09b61fc4c423cceaff8b5d5a718e/node_modules/.pnpm/gaxios@7.1.1/node_modules/gaxios/src/gaxios.ts:211:15)\n at process.processTicksAndRejections (node:internal/pro
cess/task_queues:95:5)\n at async OAuth2Client.requestAsync (/tmp/__pdg__/dist/code/405eca4545020dbdfb0ea35d57723626821c09b61fc4c423cceaff8b5d5a718e/node_modules/.pnpm/google-auth-library@10.3.0/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20)\n at async createAPIRequestAsync (/
tmp/__pdg__/dist/code/405eca4545020dbdfb0ea35d57723626821c09b61fc4c423cceaff8b5d5a718e/node_modules/.pnpm/googleapis-common@8.0.2-rc.0/node_modules/googleapis-common/build/src/apirequest.js:308:25)\n at async Object.downloadWorkspaceFile (file:///tmp/__pdg__/dist/code/405eca4545020dbdfb0ea35d57723626821c
09b61fc4c423cceaff8b5d5a718e/code/google_drive.app.mjs:1263:9)\n at async Object.run (file:///tmp/__pdg__/dist/code/405eca4545020dbdfb0ea35d57723626821c09b61fc4c423cceaff8b5d5a718e/code/actions/download-file/download-file.mjs:126:9)\n at async file:///var/task/component_maker.mjs:170:11\n at async captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:5)\n at async run (file:///var/task/component_maker.mjs:157:20)\n at async file:///var/task/component_maker.mjs:199:11"
Specifically this is what I see
What version of the SDK are you using?
1.8.0
Also every other action works fine, specifically just the download throws that
Oh interesting, can you try in the demo app?
There’s gotta be a bad parm or org in there somewhere, I don’t immediately see it though. I always like to compare against the payload sent from the demo app to debug.
You can see in the Debug tab
Sure, Ill try that
That looked like it worked? But I had to specify the conversion format
I dont see that in the getComponent of that tool
Oh nvm to the above, thats just the mimetype
I already specify that so that shouldnt be a problem
Actually, may have narrowed it down to the mimeType being the issue, Ive been feeding the mimeType in directly but looks like as part of the mimeType options the mimeType I got from the get file metadata tool cant be used
Oh I see, yea are you calling configureComponent on the mimeType prop? That’ll return the relevant options for you to use. Notice that that prop has remoteOptions: true set.
Gotcha, yeah that seems to be the problem