调用Sentry用户反馈API无效

时间:2018-12-26 22:41:30

标签: react-native expo sentry react-native-sentry

我正在开发一个Expo / React Native应用,并且expo-sentry目前不支持Sentry.showReportDialog()。因此,我认为我需要直接致电User Feedback API endpoint

我这样做是出于以下目的:

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"}'

我以为它起作用了,因为它返回了JSON响应,如下所示:

{
  "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"
}

但是,它没有显示在用户反馈标签中:

enter image description here

我确定它指向正确的项目,并且细节正确,因为错误报告确实有效:

enter image description here

任何帮助将不胜感激,谢谢!

0 个答案:

没有答案