I can't see the submitted user feedback in my project
See original GitHub issueI am using ReactJS to set up the user feedback for Sentry.
I initialize it with:
import Raven from 'raven-js';
Raven.config(https://#########@sentry.io/#######, {
environment: "development",
}).install();
And used the componentDidCatch in ErrorBoundary(https://reactjs.org/docs/error-boundaries.html) concept to show the report dialog.
componentDidCatch(error, info) {
this.setState({ hasError: true });
Raven.captureException(error, { extra: info });
Raven.showReportDialog();
}
When I submit the dialog, the network shows me a POST request with a 200 Response and a confirmation dialog that it was successful. However, the body is empty and the submitted form can’t be seen in the user feedback section of my project on my sentry account.
The behavior looks as seen on this site: https://wiggly-power.glitch.me/
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to view feedback - Pearson MyITLab Office 2016 - YouTube
When completing the Grader Project in MyITLab by Pearson you can view submissions in any of the ... Your browser can't play this...
Read more >What to Do When Users Can't Submit Feedback - Help Center
Click Management>Project Configuration>Feedback Types in the upper navigation bar; Hover over your Feedback Type; Click Modify pencil; Click Workflow; Identify ...
Read more >What is the timeline for Project Review, and how to view the ...
In the Review tab, you can see the feedback from your reviewer. And in the History tab, you can see your previous feedback...
Read more >Submitting & Managing Feedback - Qualtrics
In your Qualtrics account, navigate to the Projects page. · Click the folder icon. · Go to the Shared with me folder. ·...
Read more >How to track and manage customer feedback - Asana
If you want to track only the feedback for specific features, products, etc. create a project for each so feedback goes to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kerwin-personalyze there are 2 issues with the code.
You are using the development version of React, which has known “issue” (they say it’s feature, but plenty of people think of it as unexpected behavior), which rethrows all errors, even those caught by error boundaries, to the global error handler.
Because of this, you are calling
showReportDialog
with incorrecteventId
, as it’s getting overridden by the second react error (which is not sent to Sentry, as it’s a duplicate, and we dedup exactly same errors)Captured event:
Dialog call:
If you’ll use
production
bundle, it’ll fix itself.You are also calling
showReportDialog()
in one place andcaptureException
in other. It can make it use incorrecteventId
if any error happens in between. It’s better to store aneventId
that you want and pass it directly.Keep in mind that your
componentDidCatch
is called second, not first (hello again react), soeventId
that you see being sent to Sentry in network tab actually comes from global error handler.@kamilogorek I am having the same issue. In my case sentry API in the browser network tab has the correct event id but my
componentDidCatch
method gives me the wrong eventID. Following is my code:Please suggest a way forward.