Sometime for temporary issue, shopify http request fail, for example I found in my test logs:
Request failed with HTTP Code 520
Request failed with HTTP Code 503
OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
If you try again a moment later, same requests are ok.
This implementation try to mitigate this problem.
I add two configuration parameters MaxRequestRetry that define how many retry are allowed (default is 0 that does not change the original behaviour of the library) and RequestRetryCallback that allow to define a callback to manage or log the retry.
Sometime for temporary issue, shopify http request fail, for example I found in my test logs:
If you try again a moment later, same requests are ok.
This implementation try to mitigate this problem.
I add two configuration parameters
MaxRequestRetry
that define how many retry are allowed (default is 0 that does not change the original behaviour of the library) andRequestRetryCallback
that allow to define a callback to manage or log the retry.For example