Node.js - download_zip_url callback never fired
I am trying to use the download_zip_url method from a node.js back-end, but I'm seeing no success.
I am using the exact example seen in the docs here:
https://cloudinary.com/documentation/image_upload_api_reference#generate_archive
However, the method callback never gets called - the method never returns an error, nor a result.
I am expecting to get the URL in the result so that I can then pass it to my app's front-end, but maybe there's a fundamental misunderstanding as to how this method works? Otherwise, what might be going wrong?
-
Official comment
@Alex and @PAD SBTELECOMS,
It turns out that there is no callback for the API call download_zip_url. Our Node SDK code shows no callback here:
Our documentation team has been notified to update the doc.
I apologize for any inconvenience this has caused.
-
Hi @Alex,
Would you be able to share an example of your download_zip_url call?
I have added an example here:
cloudinary.v2.utils.download_zip_url( { public_ids: 'dog,cat,lion', resource_type: 'image'}, function(error,result) {console.log(result) });
I am looking forward to your update.
2 -
Hi Daniel,
Thanks for your reply. Here's what I have:
cloudinary.v2.utils.download_zip_url(
{ public_ids: 'my_folder/my_id'},
function(error, result){
if(error){
console.log('error: ' + error);
}
console.log('result: ' + result);
});When I run this, I get nothing on the console. I can confirm the folder and public_id are good - I've tested them on other operations such as create_zip, and they work.
It really looks to as if the callback doesn't fire at all. What else might it be?
0 -
@Alex,
I examined our logs, and it appears that the `public_ids` specified was `logos/user_id/date/` which includes a forward slash at the end meaning to add the folder, however, it needs to be a specify the full public_id or a tag. If you would like to share more confidential details, please open a support ticket at https://support.cloudinary.com/hc/en-us/requests/new. You may refer to me on the ticket as well.
0 -
Hi, I also have the same issue, the callback function doesn't get called
`const options = {tags:"ready-set-work-facilitators",resource_type:"image"};
cloudinary.v2.utils.download_zip_url(options, (err, result) => {console.log("Zipped Response: ", result);});`0 -
@Alex and @PAD SBTELECOMS, you are correct. I apologize for that. It looks like the callback is not firing. I am reporting this to our dev team.
Once I receive an update from them, I will be glad to let you know.
0 -
I have the same issue. How can I return the download_zip_url to the client with node.js?
0
Post is closed for comments.
Comments
7 comments