Skip to content

React Native: Does not send exceptions at all #526

Closed
@grabbou

Description

@grabbou

On a side note - we should really improve the way we call onError callbacks - without original error or at least request response it's really hard.

Anyway, after putting console.log inside request.onreadystatechange in react-native plugin, I've seen all requests on Android fail with statusCode: 0 and body: "Payload is set but no content-type header specified".

Simply adding:

request.setRequestHeader('Content-type', 'application/json');

fixed the issue and errors started appearing in dashboard immediately.

It seems to me like it's a RN change as it used to work last week before upgrade.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions