Skip to content

[Typescript] Handle non-HTTP errors during retries - #499

Merged
Robert Yokota (rayokota) merged 4 commits into
masterfrom
fix-retries
Jun 23, 2026
Merged

Robert Yokota (rayokota) merged 4 commits into
masterfrom
fix-retries

Conversation

@rayokota

@rayokota Robert Yokota (rayokota) commented Jun 23, 2026 •

Copy link
Copy Markdown
Member

What

Handle non-http errors during retries

Checklist

  • [Y] Contains customer facing changes? Including API/behavior changes
  • [Y] Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

Copilot AI review requested due to automatic review settings June 23, 2026 20:23
@rayokota
Robert Yokota (rayokota) requested review from a team as code owners June 23, 2026 20:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Schema Registry TypeScript client’s axios-retry configuration so transient failures that don’t include an HTTP response (e.g., network-level failures/timeouts) are considered retryable, and adds unit tests to validate the new behavior.

Changes:

  • Treat errors without an HTTP response as retryable in RestService’s axiosRetry configuration.
  • Add Jest tests asserting retries occur for networkError() and timeout() cases (no HTTP response).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
schemaregistry/rest-service.ts Expands retry condition to retry when no HTTP response is present.
schemaregistry/test/rest-service.spec.ts Adds retry-policy tests for network errors and timeouts without HTTP responses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/rest-service.ts Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

Comment thread schemaregistry/rest-service.ts Resolved
Comment thread schemaregistry/rest-service.ts Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
@rayokota Robert Yokota (rayokota) changed the title Handle non-http errors during retries [Typescript] Handle non-HTTP errors during retries Jun 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread CHANGELOG.md Resolved
@rayokota
Robert Yokota (rayokota) merged commit 90c7a97 into master Jun 23, 2026
3 checks passed
@rayokota
Robert Yokota (rayokota) deleted the fix-retries branch June 23, 2026 23:23
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.

3 participants