Repository navigation
Commit 723fe6a
committed
fix: improve error handling for HTTP responses in QueryClient
## Summary
This commit enhances the error handling mechanism in the `QueryClient` class to better manage HTTP error responses (4xx/5xx). It provides clearer error messages by parsing the response content and extracting relevant details.
## Key Changes
- Added logic to handle error responses where the parsed response is `None`.
- Improved exception messages to include HTTP status codes and detailed error information from the response body.
## Testing Notes
- Verify that the error handling works correctly for various HTTP error scenarios.
- Ensure that the exceptions raised provide meaningful information for debugging.
## Infrastructure Considerations
This change improves the robustness of the `QueryClient` by ensuring that errors are reported with more context, aiding in troubleshooting and enhancing overall reliability.1 parent 38c2727 commit 723fe6a
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
269 | 286 | | |
270 | 287 | | |
271 | 288 | | |
| |||
0 commit comments