Unable to get user feedback when using API endpoint


#1

Hey all, I integrated Sentry into my React Native app using Expo.

The react-native integration doesn’t currently have the Sentry.showReportDialog() method, so I was hoping to just manually call the /user-feedback endpoint.

I was able to do so with the following:

curl 'https://sentry.io/api/0/projects/saad-quadri/test/user-feedback/' --request 'POST' --header 'Authorization:  Bearer <my-auth-token>' --header 'Content-Type: application/json' --data '{"comments":"there is an issue with the app","email":"johnsmith@gmail.com","event_id":"1234abcd","name":"John Smith"}'

This returned a JSON response like so:

{
  "eventID": "1234abcd",
  "name": "John Smith",
  "event": { "eventID": "1234abcd", "id": null },
  "user": null,
  "dateCreated": "2018-12-26T22:01:40.883Z",
  "issue": null,
  "id": "443876",
  "comments": "there is an issue with the app",
  "email": "johnsmith@gmail.com"
}

However, when I actually go to the User Feedback page, there is no feedback shown:

I am sure I am using the right project details and that Sentry is set up right because it works when I throw an example error: https://i.imgur.com/DxcNqmj.png

Any help would be appreciated!