Skip to main content

Canceled uploads

Comments

3 comments

  • Thomas Gurung

    Hi Sven,

    Thanks for reaching out and sorry you are having issues. 

    Could you please send us the full error message/log you received and any other information you may think will be useful to investigate this further?

    Thanks,
    Thomas 

    0
  • Sven Hinz

    Hi Thomas,

    the only message i can get is "A task was canceled" in the try..catch after a while...

    All pdfs are successfully uploaded but sometimes i can't get the 'uploadResult'.

    Stack Trace: 

       bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       bei CloudinaryDotNet.ApiShared.<CallAsync>d__57.MoveNext()
       bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       bei CloudinaryDotNet.ApiShared.<CallAndParseAsync>d__55`1.MoveNext()
       bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       bei CloudinaryDotNet.Cloudinary.Upload[T,TP](TP parameters)
       bei CloudinaryDotNet.Cloudinary.Upload(ImageUploadParams parameters)
       bei STEPTools.Program.PostData(Cloudinary cloudinary, String dir) in C:\Users\blobadmin\Documents\Projekte\c#\STEPTools\STEPTools\Program.cs: Zeile81

    0
  • Thomas Gurung

    Hi Sven,

    Thanks for getting back. 

    I have checked your account and I can see 3 instances of upload failures in the last couple of days which seems to be due to an edge case on our end so this should not be happening anymore.

    But please do open a ticket https://support.cloudinary.com/hc/en-us/requests/new should this occur again. 

    I would also recommend you upload asynchronously by including async=true in your upload call. So what happens is we send an initial response back to you saying the upload is in progress and carry out the task in the background. If you have notification_url=https://webhook.site/93eb7a5b-fc9e-4628-929d-aab694968572 included as well then we send the final complete response to your webhook.

    More on these optional parameters here: https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters

    Hope this helps and please let me know if you have any further questions.

    Thanks,
    Thomas

    0

Post is closed for comments.