Basic-Shopify-API icon indicating copy to clipboard operation
Basic-Shopify-API copied to clipboard

cURL Timeout

Open SuperVentureStudio opened this issue 3 years ago • 1 comments

Hi,

Is it normal to get a cURL timeout when accessing Shopify REST API?

How do you deal with it?

Also I noticed when the cURL timeout error happens, it doesn't fire the exception or returns any "errors" in the request, it just kills the process there.

For example this means it won't attempt to retry the request, like it would due to rate limiting or other HTTP status codes.

Thank you

SuperVentureStudio avatar Sep 04 '22 07:09 SuperVentureStudio

Correct, there is no handling of timeout. We would need to catch the exception, determine if its a timeout, then run the retry process.

gnikyt avatar Sep 06 '22 12:09 gnikyt