Closed
Description
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
Labels
No labels