Skip to content

Conversation

@xavdid-stripe
Copy link
Member

Why?

We got reports of 400 errors when users called v2 endpoints w/ unicode strings in the body.

The root cause was the API ingress proxy counting bytes more accurately than the Node SDK. We were underreporting and it was giving a confusing error message back as a result.

What?

  • add test
  • calculate the content-length in a unicode-aware way

See Also

@xavdid-stripe xavdid-stripe requested a review from a team as a code owner October 31, 2025 22:19
@xavdid-stripe xavdid-stripe requested review from mbroshi-stripe and removed request for a team October 31, 2025 22:19
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) October 31, 2025 22:19
Copy link
Contributor

@mbroshi-stripe mbroshi-stripe left a comment

Choose a reason for hiding this comment

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

Looks good. Had a non-blocking question

@xavdid-stripe xavdid-stripe merged commit 8f765db into master Nov 3, 2025
11 checks passed
@xavdid-stripe xavdid-stripe deleted the RUN_DEVSDK-2018 branch November 3, 2025 17:45
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.

3 participants