This topic was automatically generated from Slack. You can find the original thread here.
Hi. I am trying to invoke an action through the connect REST API but it is giving me this error
the payload i am sending to /connect/${project_Id}/actions/run sending look like this:
{'external_user_id': 'user_id', 'id': 'google_sheets-add-single-row', 'configured_props': {'google_sheets': {'authProvisionId': 'account_Id'}, 'sheetId': 'sheet_id', 'worksheetId': 'work_sheet_id', 'hasHeaders': False, ****otherProps}}
and my headers are configured like this:
{
"Authorization": f"Bearer {self.access_token}",
"Content-Type": "application/json",
"X-PD-Environment": self.environment
}
but it is giving me this error:
{'os': [{'ts': 1745001736662, 'k': 'error', 'err': {'name': 'TypeError', 'message': "Cannot read properties of undefined (reading 'oauth_access_token')", 'stack': "TypeError: Cannot read properties of undefined (reading 'oauth_access_token')\n at Object.drive (file:///tmp/__pdg__/dist/code/e4207de98c73060cf90653524592081661abecd9e78d47c101ab55bdc7e8c265/node_modules/.pnpm/@pipedream+google_drive@0.9.1/node_modules/@pipedream/google_drive/google_drive.app.mjs:299:34)\n at Object.getFile (file:///tmp/__pdg__/dist/code/e4207de98c73060cf90653524592081661abecd9e78d47c101ab55bdc7e8c265/node_modules/.pnpm/@pipedream+google_drive@0.9.1/node_modules/@pipedream/google_drive/google_drive.app.mjs:809:26)\n at Object.run (file:///tmp/__pdg__/dist/code/e4207de98c73060cf90653524592081661abecd9e78d47c101ab55bdc7e8c265/code/actions/add-single-row/add-single-row.mjs:131:57)\n at file:///var/task/component_maker.mjs:151:42\n at captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:11)\n at run (file:///var/task/component_maker.mjs:141:26)\n at MessagePort.<anonymous> (file:///var/task/component_maker.mjs:177:15)"}}]}
Would appreciate any advice! Thanks!