Skip to content

Handle structured credit and plan errors in the Python SDK - #20

Merged
JacobiusMakes merged 2 commits into
mainfrom
fix/first-response-error-contract
Dec 1, 2026
Merged

JacobiusMakes merged 2 commits into
mainfrom
fix/first-response-error-contract

Conversation

@JacobiusMakes

Copy link
Copy Markdown
Owner

A 403 from a real service route can wrap its reason in a detail object. The client tried to call lower() on that object. A first-time user saw AttributeError when their monthly balance was exhausted or their requested date exceeded the plan lookback.

Read the nested service code, keep the documented credit and tier exceptions distinct, and close the response after reading it. Exercise the ordinary odds call against 14 redacted HTTP cases, including legacy gateway messages. The six-case guide also covers a timed-out request, an empty result and a stale price.

The 0.3.5 wheel passed the installed-package and HTTP tests outside the checkout. The release target is the official GitHub repository.

@JacobiusMakes
JacobiusMakes merged commit 55d5801 into main Dec 1, 2026
3 checks passed
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