feat(sdk): improve python REST client transport error diagnostics#2942
Merged
mrkaye97 merged 6 commits intohatchet-dev:mk/py-1-22-16from Feb 5, 2026
Merged
Conversation
|
@BloggerBust is attempting to deploy a commit to the Hatchet Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
nice, thanks! mind posting some example errors that are raised here, if possible? (you might be able to simulate them by just raising from inside one of these methods) |
Contributor
Author
|
@mrkaye97 no problem! Here are a few simulated examples by raising inside |
Contributor
|
Nice, thanks! This looks good to me - would you mind bumping the patch version of the package and writing a changelog entry here? Then I'll get this shipped. Thanks for the fix! |
Contributor
Author
|
Bumped Python SDK patch version to 1.22.16 and added a changelog entry. Thanks! |
mrkaye97
added a commit
that referenced
this pull request
Feb 5, 2026
* feat(sdk): improve python REST client transport error diagnostics (#2942) * feat(sdk): improve python REST client transport error diagnostics Refs #2872 * chore(sdk/python): bump version to 1.22.16 * fix: change from `asyncio` to `inspect` for `.iscoroutinefunction` (#2933) * fix: change from asyncio.iscoroutinefunction to inspect.iscoroutinefunction * chore: bump --------- Co-authored-by: matt <mrkaye97@gmail.com> --------- Co-authored-by: Trevor Wilson <trevor.wilson@bloggerbust.ca> Co-authored-by: Stefan <28559054+StefanBRas@users.noreply.github.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2872
Description
This PR improves failure diagnostics in the Python SDK REST client by expanding
the set of transport level exceptions captured and enriching the resulting
ApiExceptionmessage with request context.Specifically, when low level
urllib3transport errors occur, such as timeouts,connection failures, protocol errors, the raised exception now includes:
This makes timeout and connectivity failures significantly easier to diagnose
without changing retry behavior or public APIs.
This addresses part of the diagnostics concerns raised in #2872.
Type of change
What's Changed
urllib3transport exceptions handled by the REST client