Closed ben-optus closed 1 month ago
Hi @ben-optus, thanks for creating this issue. Under the hood, the commerce-sdk
makes fetch calls using this package:
https://www.npmjs.com/package/make-fetch-happen
in the official documentation for make-fetch-happen
, It states that retries are only triggered under the following conditions:
Request method is NOT POST AND
Request status is one of: 408, 420, 429, or any status in the 500-range. OR
Request errored with ECONNRESET, ECONNREFUSED, EADDRINUSE, ETIMEDOUT, or the fetch error request-timeout.
For now I'll be closing out this issue, but feel free to re open if the getAccessToken
call meets those retry conditions and still does not retry.