Commit 6c86773
committed
fix: retry on timeout errors instead of failing
AbortSignal.timeout() throws DOMException with name 'TimeoutError',
which was not handled in fromError(). This caused timeout errors to
become Unknown errors (not retryable), stopping the session instead
of retrying.
Now timeout errors are converted to APIError with isRetryable: true,
enabling automatic retry with exponential backoff.
Fixes #13138
Signed-off-by: Mörgæsis <morgaesis+git@morgaes.is>1 parent 8043cfa commit 6c86773
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
974 | 982 | | |
975 | 983 | | |
976 | 984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
953 | 961 | | |
954 | 962 | | |
955 | 963 | | |
| |||
0 commit comments