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? |
Answered by
saleh-zamzam
Sep 12, 2023
Replies: 1 comment
|
I found the issue, it was in the data sent in the axios request: The right way: The wrong way: |
0 replies
Answer selected by
saleh-zamzam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the issue, it was in the data sent in the axios request:
The right way:
The wrong way: