Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Envelope header bytes length #773

Merged
merged 4 commits into from
Feb 21, 2020
Merged

fix: Envelope header bytes length #773

merged 4 commits into from
Feb 21, 2020

Conversation

bruno-garcia
Copy link
Member

@bruno-garcia bruno-garcia commented Feb 19, 2020

@HazAT it was supposed to be a draft PR but.. This is an attempt (untested) to fix: getsentry/sentry-android#273

The size issue exists because currently, we use the string length which is the number of characters. The envelope spec expects the number of bytes (which in UTF-8 vary depending on the character).

Ideally, we'd implement this in Java (we need it there anyway given the new hybrid spec) and RN will just call in with the event.

Fixes: #775

@bruno-garcia bruno-garcia requested a review from HazAT as a code owner February 19, 2020 22:19
@bruno-garcia
Copy link
Member Author

@marandaneto @HazAT regardless how we're fixing this (this PR or other) we need to address this since it's broken for RN users right now.
Can we please discuss this here or on a meeting?
Also I'd appreciate some walk through because I can't even get this to build locally. npm run build does tsc, Makefile is for publishing, etc

@HazAT
Copy link
Member

HazAT commented Feb 21, 2020

I fixed the code and bumped the SDK version. I will do a release.

@HazAT
Copy link
Member

HazAT commented Feb 21, 2020

Was able to repro it, fixed will do a release.
Thank you all.

@HazAT HazAT merged commit fdb1753 into master Feb 21, 2020
@HazAT HazAT deleted the fix/envelope-size branch February 21, 2020 08:07
@marandaneto marandaneto mentioned this pull request Sep 14, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants