Skip to content

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

@SebPawp

Description

@SebPawp

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.

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions