Skip to content

🥅 app: suppress network failure errors in error reporter#785

Merged
cruzdanilo merged 1 commit intomainfrom
network
Feb 16, 2026
Merged

🥅 app: suppress network failure errors in error reporter#785
cruzdanilo merged 1 commit intomainfrom
network

Conversation

@cruzdanilo
Copy link
Member

@cruzdanilo cruzdanilo commented Feb 16, 2026

@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2026

🦋 Changeset detected

Latest commit: 6f6e24d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Feb 16, 2026

Warning

Rate limit exceeded

@cruzdanilo has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 45 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch network

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @cruzdanilo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the application's error reporting mechanism by explicitly categorizing "Network request failed" messages as expected errors. The primary goal is to prevent the error reporter from logging or alerting on common network interruptions that do not indicate a critical application failure, thereby improving the signal-to-noise ratio of reported errors.

Highlights

  • Error Reporting: Network failure errors, specifically those with the message "Network request failed", are now classified as expected and will be suppressed from the error reporter. This change aims to reduce noise from transient or expected network issues.
Changelog
  • .changeset/shy-foxes-glow.md
    • Added a new changeset file to document the patch release.
  • src/utils/reportError.ts
    • Modified the classify function to include 'Network request failed' in the list of expected error messages, preventing them from being reported.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@sentry
Copy link

sentry bot commented Feb 16, 2026

Sentry Issue: EXA-17D

@sentry
Copy link

sentry bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.83%. Comparing base (fc1081d) to head (28780ba).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #785      +/-   ##
==========================================
- Coverage   69.50%   68.83%   -0.67%     
==========================================
  Files         207      207              
  Lines        7202     7012     -190     
  Branches     2256     2205      -51     
==========================================
- Hits         5006     4827     -179     
+ Misses       2007     2006       -1     
+ Partials      189      179      -10     
Flag Coverage Δ
e2e 52.61% <100.00%> (-16.87%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cruzdanilo cruzdanilo merged commit 6f6e24d into main Feb 16, 2026
3 of 5 checks passed
@cruzdanilo cruzdanilo deleted the network branch February 16, 2026 04:06
authPrefixes.some((prefix) => message.startsWith(prefix)));
const authExpected = passkeyExpected || passkeyNameExpected || message === "invalid operation";
const expected = passkeyExpected || message === "invalid operation";
const expected = passkeyExpected || message === "invalid operation" || message === "Network request failed";
Copy link

Choose a reason for hiding this comment

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

Bug: Globally suppressing "Network request failed" errors is overly broad and risks hiding critical backend or infrastructure issues from error reporting.
Severity: HIGH

Suggested Fix

Instead of a global suppression in reportError, use the more targeted suppressError function on a per-query basis where this error is expected. Add code comments to explain why the suppression is necessary in those specific contexts. This will prevent masking legitimate, critical backend failures.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/utils/reportError.ts#L106

Potential issue: The change in `reportError.ts` adds a global suppression for any error
with the message "Network request failed". This message is generic and can be triggered
by various causes, including actual server downtime, SSL/TLS certificate problems, or
CORS issues, not just user-side network connectivity problems. By silencing these errors
globally, the application will fail to report critical backend or infrastructure
failures to Sentry, potentially leaving the team unaware of outages affecting core
financial features like card operations, KYC, or DeFi swaps.

Did we get this right? 👍 / 👎 to inform future reviews.

@sentry
Copy link

sentry bot commented Feb 16, 2026

Sentry Issue: EXA-1BN

@sentry
Copy link

sentry bot commented Feb 16, 2026

Sentry Issue: EXA-18P

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

Successfully merging this pull request may close these issues.

1 participant

Comments