Closed JulijaRamoskiene closed 12 hours ago
Retry requests when they failed due to transient network error. Currently only requests with 429 responses are retried here: https://github.com/iTwin/insights-client/blob/main/src/common/OperationsBase.ts
Sample of request that should be re-tried:
Suggested error and status codes for re-try:
StatusCodes: 408, 413, 429, 500, 502, 503, 504, 521, 522, 524
ErrorCodes: "ETIMEDOUT", "ECONNRESET", "EADDRINUSE", "ECONNREFUSED", "EPIPE", "ENOTFOUND", "ENETUNREACH", "EAI_AGAIN", "ECONNABORTED"
Will not add retries for 413 (Content Too Large) - retrying will not reduce the content size.
Version 0.15.0 published with this change.
Retry requests when they failed due to transient network error. Currently only requests with 429 responses are retried here: https://github.com/iTwin/insights-client/blob/main/src/common/OperationsBase.ts
Sample of request that should be re-tried:
Suggested error and status codes for re-try:
StatusCodes: 408, 413, 429, 500, 502, 503, 504, 521, 522, 524
ErrorCodes: "ETIMEDOUT", "ECONNRESET", "EADDRINUSE", "ECONNREFUSED", "EPIPE", "ENOTFOUND", "ENETUNREACH", "EAI_AGAIN", "ECONNABORTED"