Closed suuf closed 1 month ago
Hi @suuf thanks for writing in! Unfortunately, Brave is know to block Sentry requests by default (see "Dealing with Ad Blockers" on this page). So I assume is that the browser blocks the request, especially given that it works in Chrome.
On first thought, I agree though that ideally, the feedback widget should show transparently that the feedback couldn't be sent. Unfortunately, there isn't really anything users could do in this specific case other than switching browsers.
On an implementation specific note: Our SDKs are generally designed to fail silently so that end users don't even notice a problem with the SDK (+ it shouldn't interrupt the application's behaviour). I think there might be a possibility to listen to failed requests (Client.on('afterSendEvent')
but not sure if this is applicable easily.
Since I don't have much context on the feedback widget, I'll ask the feedback team to further look into this.
Fix released with https://github.com/getsentry/sentry-javascript/releases/tag/8.10.0!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.9.1
Framework Version
Nextjs 14
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
Prerequisites:
Expected Result
I would expect an error to show, or at least I would expect a successful message not to show.
Actual Result
Success message on submission failure:![Screenshot 2024-06-12 092146](https://github.com/getsentry/sentry-javascript/assets/6342213/aa641bcb-d156-4628-b325-89d7abc0591c)
Failed HTTP request:![Screenshot 2024-06-12 092227](https://github.com/getsentry/sentry-javascript/assets/6342213/9942c451-4961-4146-9500-6531f43a4937)