I got a "Stale request" error for my upload API call, what does it mean?

All API requests are signed using your Cloudinary's API Key and Secret. For better security, the signature is valid for one hour. Therefore, all API calls and the signatures include the 'timestamp' parameter that should be set to the current time (unix time in GMT). Getting the "Stale request" error usually means that either your computer's clock is in the past or the timestamp was not calculated in GMT.

Have more questions? Submit a request

Comments

  • Avatar
    Tim Strietzel

    That is realy a helpful post! Thank you, Orly!

    Especially if you use VMs for development that you frequently hibernate/suspend and resume later on the VMs you can run into problems. The operating system (Ubuntu in my case) can lose track of the "real" time which leads to the error.

    Simply updating the system time of your development VM fixes the issue.

    Cheers!

    Tim

  • Avatar
    kidkeeper

    It's not working on my own computer (not a VM).
    For some reason it doesn't take my local time and I can't set the time - it doesn't work:
    cloudinary = new Cloudinary(...);
    cloudinary.uploader().upload(file,
    ObjectUtils.asMap("timestamp", "129830123"));

    What I am doing wrong?

    P.S - It worked one time, I don't know what was changed...

    Thanks!

  • Avatar
    emmanuel

    hello, Orly Bogler, does this mean I have to reset my time? How exactly do I solve this problem, pls?

  • Avatar
    Maor Gariv

    Hi Emmanuel,

    Can you elaborate on your issue (provide relevant code, error message, etc.)?
    Feel free to open a new support ticket (https://support.cloudinary.com/hc/en-us/requests/new) if privacy is an issue.

Powered by Zendesk