This topic was automatically generated from Slack. You can find the original thread here.
Radhika Kondapaneni : Hi , I have a large object as a result of a step in pipedream . I need to store that in some file and download to my local . How can I achieve this?
Leo : you can use an action to write the object into a file into Pipedream’s /tmp folder, and upload the file to a Cloud storage service such as Google Drive, Dropbox. Then download the file from the Cloud storage to your local machine
Leo : Could you try to test by executing all actions in the workflow instead of each action by each? You can scroll up to the trigger and test the whole workflow, or just deploy the workflow and trigger it
I suspect that the /tmp dir is deleted right after the python action is done
Leo : Hmm I see that the python code step result is empty, I suspect that the issue is in the Python code step where it failed to write data to the /tmp folder.
Could you try to write a new Python code step with the minimal code following Pipedream’s example and improve from there?
Radhika Kondapaneni : But I am able to see the data in export step when read from the /tmp file. Even then I’ll try to check with the simple code that youu suggested and will let you know if there are any issues.
Radhika Kondapaneni : I have tried the same . It is showing me success and file is getting created in gdrive . But contents of file is empty.I have even tried reading the file from /tmp before uploading to gdrive. Also can u share your nodejs code from the above screenshot
Leo : Hello , I apologize for the late response! It seems like your action to save file to /tmp dir is correct, but the file is empty on Google Drive is a bug (I’ve submitted a ticket to fix it here).
For now could you use DropBox instead? I’ve tested with dropbox and it works correctly (images below)
Radhika Kondapaneni : Yes , with Dropbox its working fine. But how can I download that file and send it to slack from this trigger event called new file in dropbox using these parameters?
Leo : Hello ,
> But how can I download that file and send it to slack from this trigger event called new file in dropbox using these parameters?
After uploading the file, I think you can use Dropbox’s Create a Share Link action to get the shared link, then include the shared link to the message in Slack Send Message action