Skip to content

User Feedback can't be sent on Android #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
rdinizz opened this issue Oct 4, 2019 · 2 comments
Closed
1 of 2 tasks

User Feedback can't be sent on Android #683

rdinizz opened this issue Oct 4, 2019 · 2 comments

Comments

@rdinizz
Copy link

rdinizz commented Oct 4, 2019

Platform:

  • iOS
  • Android

SDK:

  • [0.43.1] react-native-sentry

react-native version: 0.59.10

Init Code:

Sentry.config(sentryURL, {
    logLevel: SentryLog.Error
  }).install()

I have following issue:

On iOS I do a Sentry.captureMessage and then Sentry.setEventSentSuccessfully properly, but on android, the request fails with the following error and Status 400:

{
  "event_id": [
    "Ensure this field has no more than 32 characters."
  ]
}

Request:

curl -X POST  -H "authorization:Bearer+token" -H "content-type:application/json" https://sentry.io/api/0/projects/organization/myApp/user-feedback/ -d '{"event_id":"c90b8e81-1e0a-4a26-88f0-dd28a403a2a9","name":"Fulano","email":"my_email","comments":"Bug"}'

Request params:

{
  "event_id": "c90b8e81-1e0a-4a26-88f0-dd28a403a2a9",
  "name": "Fulano",
  "email": email,
  "comments": "Bug"
}

It seems like the event generated for iOS have the event_id dashes removed(it would be like c90b8e811e0a4a2688f0dd28a403a2a9) having less than 32 characters.
But on Android, it has the dashes and because of that, more than 32 characters.

I can send a custom id to the setEventSentSuccessfully, but the feedback message is not associated with the event, and i believe i should send the same id as the lastEventId, so, sending a custom id is not a solution, unless i could create an event with a custom id and then send the feedback with the same id.

I appreciate any help.

@Speedy1991
Copy link

Maybe related #691

@HazAT
Copy link
Member

HazAT commented Feb 12, 2020

Please follow this, we will most likely add support for this by providing an API but not a UI.
#500

@HazAT HazAT closed this as completed Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants