Skip to content

payload is set but no content-type header specified #184

@JAStanton

Description

@JAStanton

While running Sentry on Android for the first time I got an error saying I needed to set content-type for header. "payload is set but no content-type header specified".

I am on:

react-native 0.44.3
react-native-sentry 0.15.1

It looks like it was supposed to be fixed here: getsentry/sentry-javascript#432 2 years ago. The Raven-js version that is ultimately being pulled in from react-native-sentry is version 3.17.0 which appears to be the latest. Looking at their source it doesn't look like we're setting request header like in the fix pr.

Is there a different way I should go about setting this? Is there a way to configure react-native or raven differently to make this all compatible?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions