Commit 5171475
authored
chore: improve visz on 504: Error in partition - {"error": "Connection error while initiating partition request from unstructured_client", "message": "", "type": "partition_connection_error"} (#338)
504: Error in partition - {"error": "Connection error while initiating
partition request from unstructured_client", "message": "", "type":
"partition_connection_error"}
change: "ReadError after 5 retries over 312.4s" instead of "message": ""
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Behavior only changes error formatting/raising when the backoff budget
is exhausted; normal retry and success paths are unchanged.
>
> **Overview**
> Improves observability when retries exceed `max_elapsed_time` by
rethrowing the original exception type with a message that includes the
number of attempts and total elapsed time (sync and async backoff
paths), while preserving the original exception via chaining.
>
> Bumps the generated SDK version/user-agent from `0.43.2` to `0.43.3`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
400e8e5. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 971a150 commit 5171475
2 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
| |||
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
203 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
| |||
0 commit comments