How to set the timeout of API for more than 100 seconds?
I'm testing the limits of 'Cloudinary' API.
The "CloudinaryDotNet.Cloudinary.Api.Timeout" is not set to more than 100 seconds on .NET SDK.
The "CreateZip" API will throw an error after 100 seconds.

However, the compressed resource file by "CreateZip" API is created.

How to set the timeout of API for more than 100 seconds?
-
Hi,
Could you try updating `Api.Timeout` to 100 seconds?
Note that you could also utilize `async:True` and `notification_url` when calling this method, so you can use a webhook to be notified when the zip is generated.
Best,
Brian
0 -
Hi,
I changed the 'Timeout' of Cloudinary API to more than 100 seconds.
However, Its maximum timeout is 100 seconds.
It seems to control the 'Timeout' of API by backend service.
Thanks.
0 -
HI,
As you're creating quite a big archive files, as Brian mentioned, we recommend you run the request asynchronously by setting the Async parameter to true along with notification_url, so you'll be notified once the request has completed.
e.g.,
archiveParams.Async(true);
archiveParams.NotificationUrl(myNotificationURL);For more information:
https://cloudinary.com/documentation/notifications0 -
Thank you for your support.
0
Post is closed for comments.
Comments
4 comments