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

Unexpected char 0x0a at 8 in SENTRY-APOLLO-3-OPERATION-TYPE value: cXVlcnk= #2737

Closed
SebPawp opened this issue May 26, 2023 · 2 comments · Fixed by #2745
Closed

Unexpected char 0x0a at 8 in SENTRY-APOLLO-3-OPERATION-TYPE value: cXVlcnk= #2737

SebPawp opened this issue May 26, 2023 · 2 comments · Fixed by #2745
Assignees
Labels
Platform: Java Type: Bug Something isn't working

Comments

@SebPawp
Copy link

SebPawp commented May 26, 2023

Integration

sentry

Java Version

11

Version

6.20.0

Steps to Reproduce

Execute a GraphQL query using an OkHttp 4.10 client.

Expected Result

The GraphQL query should execute and not throw an exception.

Actual Result

Throw exception Unexpected char 0x0a at 8 in SENTRY-APOLLO-3-OPERATION-TYPE value: cXVlcnk=

The header generated by Sentry is not accepted by OkHttp.
This is the line throwing the exception: https://github.com/square/okhttp/blob/parent-4.10.0/okhttp/src/main/kotlin/okhttp3/Headers.kt#L450

Downgrading to 6.19.1 seems to fix the issue.

@SebPawp SebPawp added Platform: Java Type: Bug Something isn't working labels May 26, 2023
@SebPawp
Copy link
Author

SebPawp commented May 26, 2023

This PR seems to be the issue : #2707

Instead of Base64.Default maybe use Base64.NO_WRAP?

@adinauer
Copy link
Member

@SebPawp thanks for reporting and suggesting a fix. I've opened #2745 to switch to Base64.NO_WRAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Java Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants