Problems while trying to implement custom transport #9007
-
I'm trying to implement a custom transport for a react app as I'm using this app inside UWP container and the fetch API inside UWP doesn't work to send events to sentry (found this after long time debugging), it seems that fetch API inside UWP isn't the same inside the browser. So this my code so far, I'm following the example code from https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#custom-transports:
With this code, I don't see any errors in the browser console and when logging the axios response, it's 200 so everything seems to be ok but I don't see anything in the sentry dashboard. Any idea what could be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the issue, it was in the data sent in the axios request: The right way:
The wrong way:
|
Beta Was this translation helpful? Give feedback.
I found the issue, it was in the data sent in the axios request:
The right way:
The wrong way: