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




  • Avatar
    Shirly Manor

    Hi Charlie,

    This error usually happens when the clock on the computer is not set to the right time.
    In order to provide a better feedback, can you please open a ticket at support@cloudinary.com with your cloud name and we can investigate more in this issue. 

  • 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.

  • 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.



  • Avatar

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

  • Avatar

    Hi I was getting same error too.

    Here is the code:

    var uploadResult = new ImageUploadResult();

    if (file.Length >0)

    using (var stream = file.OpenReadStream())
    var uploadParam =newImageUploadParams()
    File = new FileDescription(file.Name, stream),
    Transformation = new Transformation().Width(500).Height(500).Crop("fill").Gravity("face")

    uploadResult = _cloudinary.Upload(uploadParam);
  • Avatar

    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(...);
    ObjectUtils.asMap("timestamp", "129830123"));

    What I am doing wrong?

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


  • Avatar
    Jose D

    I tested image upload from my local machine (IST timing), and it works fine. Then tested the same code from development server (server timezone is UAE), I get the Stale request error. Please advice how can I solve this.

    Uncaught Cloudinary\Error: Stale request - reported time is 2019-03-13 06:03:08 +0000 which is more than 1 hour ago

Please sign in to leave a comment.