I’m using the React Native SDK, which doesn’t currently have support for attachments, but I’m trying to get away with it by using this API directly: Attachments for JavaScript | Sentry Documentation
Basically, Im making a request to:
/api/6009522/events/64b7f96640e34c81857c9a82fa1e8013/attachments/?sentry_key={REDACTED}&sentry_version=7&sentry_client=custom-javascript
And the server is responding with a 201, but the attachment never shows up on the event.
Response:
{“type”:“default”,“status”:201,“ok”:true,“statusText”:"",“headers”:{“map”:{“server”:“nginx”,“x-envoy-upstream-service-time”:“0”,“access-control-expose-headers”:“retry-after, x-sentry-error, x-sentry-rate-limits”,“content-length”:“0”,“strict-transport-security”:“max-age=31536000; includeSubDomains; preload”,“via”:“1.1 google”,“vary”:“Origin”,“date”:“Tue, 30 Nov 2021 00:22:36 GMT”,“alt-svc”:“clear”,“content-type”:“text/plain”}},“bodyUsed”:false,"_bodyInit":{"_data":{“size”:0,“offset”:0,“blobId”:“376EA65B-C4F3-4D93-9FB7-431BFF9DFC3D”,“type”:“text/plain”,“name”:“attachments.txt”,"__collector":{}}},"_bodyBlob":{"_data":{“size”:0,“offset”:0,“blobId”:“376EA65B-C4F3-4D93-9FB7-431BFF9DFC3D”,“type”:“text/plain”,“name”:“attachments.txt”,"__collector":{}}}}
I have no idea how to debug this, the project stats don’t show any stats for attachments (dropping filter or accepting). I’ve literally copy-pasted the code on the site and it still doesn’t work. Any help would be appreciated.