-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Error "invalid event envelope" when send user feedback. #534
Comments
You have to send user feedback for an event because user feedback is always linked to an event in Sentry. final id = await Sentry.captureMessage('Hello World!'); // or Sentry.captureException(..), Sentry.captureEvent(..)
Sentry.captureUserFeedback(
SentryUserFeedback(
name: 'user name',
email: '[email protected]',
comments: 'feedback in here',
eventId: id
),
); If it still does not work after you changed it accordingly, then it is definitely a bug. |
The same error still appears:
|
@ueman could be something with the envelope, can you have a look? |
@atticdev That's because you can't collect user feedback without an issue. Could it be that @marandaneto I think it's an Android problem. Pure Dart, iOS and macOS are working fine. |
@ueman yep, if you get the envelope String before it gets written to the disk on Android, I can try to debug too, maybe we're missing something since the Android SDK deserializes the envelope before it gets sent, different than iOS. |
@ueman Ahh I see, I thought the user feedback sent directly to "User Feedback" menu in Sentry. What should I do so that the feedback goes directly to the user feedback menu? This is my full code:
|
@marandaneto {
"event_id": "bdd63725a2b84c1eabd761106e17d390",
"sdk": {
"name": "sentry.dart.flutter",
"version": "6.0.0-beta.3",
"packages": [
{
"name": "pub:sentry",
"version": "6.0.0-beta.3"
},
{
"name": "pub:sentry_flutter",
"version": "6.0.0-beta.3"
}
],
"integrations": [
"isolateErrorIntegration",
"runZonedGuardedIntegration",
"widgetsFlutterBindingIntegration",
"flutterErrorIntegration",
"widgetsBindingIntegration",
"nativeSdkIntegration",
"loadAndroidImageListIntegration",
"loadReleaseIntegration"
]
}
}
{
"content_type": "application/json",
"type": "user_report",
"length": 103
}
{
"event_id": "bdd63725a2b84c1eabd761106e17d390",
"name": "jonas",
"email": "[email protected]",
"comments": "bad stuff"
} Do you see what's wrong? |
@ueman I'll have a look |
@atticdev It's currently broken on Android. It should show up after it's fixed. Until then you can try Flutter for Web or iOS. |
ok found out, looks like it's an Android bug, introduced by getsentry/sentry-java#1439 the thing is, |
or actually, because we have to convert from a String to an enum, but only with capitalization, |
@atticdev thanks for reporting, a fix is coming up soon. |
the fix on the underlying SDK is done, we've to release and bump the SDK version here. |
@atticdev thanks for reporting once more, please give it a try https://github.com/getsentry/sentry-dart/releases/tag/6.0.0-beta.3 |
Hi, @marandaneto I have already use the updated package using git 3 days ago, and it works as expected, thanks. |
Platform:
IDE:
split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):
Platform installed with:
Output of the command
flutter doctor -v
below:The version of the SDK (See pubspec.lock):
6.0.0-beta.2
I have the following issue:
Error invalid event envelope when send user feedback.
Steps to reproduce:
When I call this code:
I got error "API returned 400".
Actual result:
Expected result:
User feedback sent to Sentry.
The text was updated successfully, but these errors were encountered: