Skip to content

Prefix request-id to error message as [req_xxx] to match other SDK formatting - #1999

Open
mark-kogan-stripe wants to merge 2 commits into
masterfrom
mark/req-id-prefix
Open

mark-kogan-stripe wants to merge 2 commits into
masterfrom
mark/req-id-prefix

Conversation

@mark-kogan-stripe

@mark-kogan-stripe mark-kogan-stripe commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Committed-By-Agent: claude

Why?

Match the format across all sdk languages
when request_id exists, the message field will be [request_id] msg otherwise it will be msg

What?

prefix [<request_id>] to message field in stripe error

See Also

Configuration

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

Aligns the error message format with stripe-node and stripe-dotnet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude
@mark-kogan-stripe
mark-kogan-stripe requested a review from a team as a code owner November 18, 2026 20:52
@mark-kogan-stripe
mark-kogan-stripe requested review from mnorth-stripe and removed request for a team November 18, 2026 20:52
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude
@mark-kogan-stripe mark-kogan-stripe changed the title Prefix request-id to error message as [req_xxx] for easier debugging Prefix request-id to error message as [req_xxx] to match other SDK formatting Nov 20, 2026

@zacchua-stripe zacchua-stripe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

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.

2 participants