This topic was automatically generated from Slack. You can find the original thread here.
Hey team, quick question about working with files in connect. I am not getting stashId in response, I have tried passing empty string, 'NEW' or true but none of it works. I receive $filestash_uploads so the files are uploaded but no stashId.
I am using typescript sdk (@pipedream/sdk), just updated to version 2.0.7. Below is sample payload passed to actions.run() :
{
"externalUserId": "9",
"id": "google_drive-download-file",
"configuredProps": {
"fileId": "1GA-AL28NMfEvK7dToRR1levKpq6stFEq....",
"filePath": "/tmp/test.doc",
"mimeType": "application/vnd.oasis.opendocument.text",
"googleDrive": {
"authProvisionId": "apn_EOh...."
}
},
"stashId": ""
}
This is the response:
{
"os": [],
"ret": {
"fileMetadata": {
"name": "Ferhat's first doc",
"mimeType": "application/vnd.google-apps.document"
},
"filePath": "/tmp/test.doc"
},
"exports": {
"$summary": "Successfully downloaded the file, \"Ferhat's first doc\"",
"$filestash_uploads": [
{
"path": "test.doc",
"s3Key": "1day/proj_BgszoOA/..../u/test.doc",
"localPath": "/tmp/test.doc",
"get_url": "https://pipedream-file-stash-production.s3.us-east-1.amazonaws.com/1day/proj_BgszoOA/e....",
"type": "PipedreamStashFile"
}
]
},
"t": {
"ar": 1758494538174,
"br": 1758494538404,
"bp": 1758494538404,
"bls": 1758494538404,
"ble": 1758494544629
}
}
Any way you guys can help? We just paid for the connect yearly sub and this is the last piece we need to finish to get going.
note: i tried with different actions (e.g. gmail-download-attachment) and none has stashId in response.