Skip to main content

I had a problem using Zaps.
I am using Webhooks by Zapider post to upload a file to a service that will process the file, return a new file, and then upload the file to google drive
When I tested it individually, everything worked fine and I could get the questions back.

 

But it appears when I want to upload a processed new file to Google Drive
Failed to create a file in Google Drive
Error while hydrating data from Webhooks by Zapier: The app returned "None".

 

I noticed that in both tests, they requested the API.

But the contents of the two messages are different.

I printed the log

Yii::info(print_r($_FILES, true), __METHOD__);

Yii::info(Yii::$app->request->getHeaders()->get('Content-Type'), __METHOD__);

The first result is:

Array

(

    file] => Array

        (

             name] => file ... .txt

            pfull_path] => file ... .txt

            ttype] => text/plain

            ttmp_name] => /tmp/phpoobfJM

            terror] => 0

            size] => 4

        )

)

multipart/form-data; boundary=—————————————768080016093773413427465

 

the second result is

Array

(

)

multipart/form-data; boundary=—————————————768080016093773413427465

 

The file is missing from the parameters of the second request, 

However, I noticed that there is a boundary in the content-type, and the two requests are the same, so should I save the processed file in the server, and I need to return the corresponding file according to the boundary when I request again?

 

I didn't find this in the document, is this the right way to do it?

 

Thank you

Hi ​@iDox01 

Make sure to test Zap step 1.

From your screenshots, in Zap step 3, for the File field, you have a variable mapped this is not providing one of these:

  • file url
  • file object

 


Hi ​@iDox01 

Make sure to test Zap step 1.

From your screenshots, in Zap step 3, for the File field, you have a variable mapped this is not providing one of these:

  • file url
  • file object

 

My process is that when I upload a new file in google drive, I process the file and upload it to google drive.

I didn't find the file url or file object

 


​@iDox01 

Screenshots seems to show dummy data.

Did you actually test Zap step 1 in the TEST tab to return a real file from GDrive?

Help link for how to test Zap steps: https://help.zapier.com/hc/en-us/articles/18811411817741-Test-Zap-steps

 

 


​@iDox01 

Screenshots seems to show dummy data.

Did you actually test Zap step 1 in the TEST tab to return a real file from GDrive?

Help link for how to test Zap steps: https://help.zapier.com/hc/en-us/articles/18811411817741-Test-Zap-steps

 

 

 

Did I make the wrong choice?

and this is response

the value is

hydrate|||.eJydU9uO0zAQ_RXk56a5NE2bIiTYLbAVhV3RFQjQKnLjaWs1tdOx3dtq_51x2hReeMEPUeZ4Zs6Zi59ZqZUFZQt7rIGN2IR1mFTGclVCIQUh32F-p_X6djp59zB5G3ej7oB8Smes3jgD2Hgl8XCY9fO8w3hZakf5GjRK8iTJBoQ6uyIWWXIrtWoulauqDltIqESh-MaTC9gVC1kB5V_vOS4NGz2zi7ALvgG70l7W6iiQW42me_6Dr7B1YCz5zJ0S5EyxDivvam1tRmEodGmCreO4dqYrhT50uQx5LcNdL6Q27EBJoLJDBMFLSh3s5Ymj-Jv14X726Bm0OPr8hd4BroCLKailXbFRL6Jiix2vHLRQHreIedSfgRuHpO3XU4ftUVo-90oXvDLQYUiZzoBFR7bgls_kieyINPDD-GonUT6I-0mH1ZxmMLMUuTFtWIFQEQ-IK2BaB09blA6RhnGOagdR0NSlgKnW9VVPUYMSUi2_wMH-Aec0X8GRGsCCf560F-dZ2kuzNBqkUdLP8mE06Md9al4B1GnbzBYQNZKqRoL_PL1c72_9GrFRTIjvMGATcVnX4LIVG1dZWXO04ULjJvANe_2qFfjmv-T5nQ74Ejw5-0nrAejfxFgfAnoAwXu1lAqCT-DrH1TRh31sTjeHtNxm07uPURKMt3YxOZ6-TW6ie7H_kbIXOr8BMz0bKg:1tuZbC:5EP82tTHDjyoN34396tgacq2BlhecZqeEWIN6rWcZfA|||hydrate

 

 

This is the wrong step:

Â