Skip to content

fix(http-client): enable got retry for transient server errors on POS…#877

Merged
programminx-askui merged 3 commits into
mainfrom
fix/SOLENG-333-enable-got-retry-for-server-errors
Apr 10, 2026
Merged

fix(http-client): enable got retry for transient server errors on POS…#877
programminx-askui merged 3 commits into
mainfrom
fix/SOLENG-333-enable-got-retry-for-server-errors

Conversation

@programminx-askui
Copy link
Copy Markdown
Contributor

…T requests (#SOLENG-333)

Remove throwHttpErrors: false from the POST method so that got's built-in retry mechanism (5 retries, exponential backoff) can trigger for transient server errors (500, 502, 503, 504). Previously, got silently returned error responses without retrying because it did not see them as errors. After retries are exhausted, HTTPError is caught and converted to our custom error hierarchy for consistent handling.

This fixes intermittent CUDNN_STATUS_INTERNAL_ERROR (500) responses from the Azure GPU backend that cannot be fixed server-side.

Refs: SOLENG-333

…T requests (#SOLENG-333)

Remove `throwHttpErrors: false` from the POST method so that got's
built-in retry mechanism (5 retries, exponential backoff) can trigger
for transient server errors (500, 502, 503, 504). Previously, got
silently returned error responses without retrying because it did not
see them as errors. After retries are exhausted, HTTPError is caught
and converted to our custom error hierarchy for consistent handling.

This fixes intermittent CUDNN_STATUS_INTERNAL_ERROR (500) responses
from the Azure GPU backend that cannot be fixed server-side.

Refs: SOLENG-333

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread packages/askui-nodejs/src/utils/http/http-client-got.ts
Comment thread packages/askui-nodejs/src/utils/http/http-client-got.ts Outdated
programminx-askui and others added 2 commits April 10, 2026 09:22
…SOLENG-333)

Got now handles all non-2xx responses via HTTPError, making the manual
statusCode !== 200 check unnecessary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…OLENG-333)

Wrap non-HTTPError exceptions (network errors, timeouts, etc.) in
UnkownHttpClientError for consistent error handling across the
HttpClientError hierarchy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@programminx-askui programminx-askui merged commit cb76e69 into main Apr 10, 2026
3 checks passed
@programminx-askui programminx-askui deleted the fix/SOLENG-333-enable-got-retry-for-server-errors branch April 10, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants