Skip to content

Make Stripe errors serializable - #1944

Open
zacchua-stripe wants to merge 2 commits into
masterfrom
zacchua/run-devsdk-3443-pickle-errors
Open

zacchua-stripe wants to merge 2 commits into
masterfrom
zacchua/run-devsdk-3443-pickle-errors

Conversation

@zacchua-stripe

@zacchua-stripe zacchua-stripe commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Why?

Stripe errors do not retain complete constructor arguments in Exception.args. This prevents some errors from being unpickled and breaks Celery’s JSON exception reconstruction.

What?

  • Preserve constructor-compatible arguments for all Stripe error types.
  • Support both pickle and Celery-style JSON round-trips.
  • Add coverage for every Stripe and OAuth error constructor shape.

See Also

http://go/j/RUN_DEVSDK-3443

Configuration

  • skip-changefile: This PR is not a user-facing change, so there's no changefile.

zacchua-stripe and others added 2 commits October 13, 2026 14:27
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@zacchua-stripe
zacchua-stripe marked this pull request as ready for review October 14, 2026 23:01
@zacchua-stripe
zacchua-stripe requested a review from a team as a code owner October 14, 2026 23:01
@zacchua-stripe
zacchua-stripe requested review from justiny-stripe and removed request for a team October 14, 2026 23:01

This branch has not been deployed

No deployments
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