Skip to content
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

Do not log network errors to sentry #3083

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Conversation

finnar-bin
Copy link
Contributor

Resolves #3074

@finnar-bin finnar-bin added the bug Something isn't working label Nov 25, 2024
@finnar-bin finnar-bin requested a review from agalin920 November 25, 2024 06:46
store.dispatch(notify({ message: err.message, kind: "warn" }));
Sentry.captureException(err, { fingerprint: ["network_error"] });
Copy link
Contributor

@agalin920 agalin920 Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is meant to fingerprint the error in order to aggregate them. The error is still being thrown below this line.

An unhandled promise rejection is typically treated as an unhandled error by Sentry so this doesn't resolve what the PR aims to resolve.

All this change would do is de-aggregate them and make more noise

Copy link
Contributor Author

@finnar-bin finnar-bin Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agalin920 I see. I assume removing the throw error below this line would be enough? We're already dispatching a notification in the UI when this happens anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I believe so

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@finnar-bin finnar-bin enabled auto-merge (squash) November 26, 2024 00:28
@finnar-bin finnar-bin requested a review from agalin920 November 26, 2024 01:46
@finnar-bin finnar-bin disabled auto-merge November 26, 2024 01:46
@finnar-bin finnar-bin force-pushed the fix/3074-failed-to-fetch branch from c29952a to f9cc467 Compare November 26, 2024 07:17
@finnar-bin finnar-bin merged commit 57a82b1 into dev Dec 6, 2024
1 check passed
@finnar-bin finnar-bin deleted the fix/3074-failed-to-fetch branch December 6, 2024 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Failed to fetch
2 participants