Skip to content

fix: preserve errors with non-string codes - #189

Open
freben wants to merge 1 commit into
mainfrom
freben/fix-retry-error-codes
Open

fix: preserve errors with non-string codes#189
freben wants to merge 1 commit into
mainfrom
freben/fix-retry-error-codes

Conversation

@freben

@freben freben commented Sep 4, 2026

Copy link
Copy Markdown
Member

Description

Prevent retry classification from replacing the original error with a TypeError when an API error exposes a non-string code. Non-string codes are treated as non-transient, while existing string network-code matching remains unchanged.

Includes a regression test that verifies the original error is rethrown without retrying.

Testing

  • CI=1 yarn test --runInBand

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
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.

1 participant