Node.js - download_zip_url callback never fired

Comments

7 comments

  • Official comment
    Avatar
    Daniel Mendoza

    @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:

    https://github.com/cloudinary/cloudinary_npm/blob/bf7103aac2714002305566d05a53ded4cdcafbca/src/utils.coffee#L848

    Our documentation team has been notified to update the doc.

    I apologize for any inconvenience this has caused.

    Comment actions Permalink
  • Avatar
    Daniel Mendoza

    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
    Comment actions Permalink
  • Avatar
    Alex

    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
    Comment actions Permalink
  • Avatar
    Daniel Mendoza

    @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
    Comment actions Permalink
  • Avatar
    PAD SBTELECOMS

    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
    Comment actions Permalink
  • Avatar
    Daniel Mendoza

    @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
    Comment actions Permalink
  • Avatar
    Josh Lee

    I have the same issue. How can I return the download_zip_url to the client with node.js?

    0
    Comment actions Permalink

Please sign in to leave a comment.