commercetools

sdk-client-v2: ex createHttpMiddleware(options) now createHttpClient(options): no retryOnAbort?


in the documentation of sdk-middleware-http about createHttpMiddleware(options) I see

12. retryOnAbort (Boolean): Configure the client to retry an aborted request or not. Defaults to false.

But looks like this is not exists anymore in @commercetools/sdk-client-v2/createHttpClient?


Solution

  • The client timeout/retry settings are documented here: https://github.com/commercetools/commercetools-sdk-typescript/blob/581ffecd93551322def7fa73484f90ef1f12a6e2/BEST_PRACTICES.md#configuring-the-timeout-parameter

    Does that help?