You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-03-23] NewDot incorrectly marks feed broken for card-specific errors #83372
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ImprovementItem broken or needs improvement.
What the problem is:
New Expensify (NewDot) marks the entire Chase company card feed as “broken” (red dot) and prompts frequent reauthentication, even when transactions continue importing and only specific cards are erroring. Old Expensify (OldDot) does not show the same feed-broken state for the same underlying errors.
What the expected output is:
NewDot should mirror OldDot behavior for Chase feed/card errors: card-specific errors (e.g., 434 account not found on individual cards) should not mark the entire feed as disconnected if the feed is otherwise functioning and transactions are importing.
Debugging info:
Reported behavior: Chase feed disconnects every 1–2 days; admin reauth temporarily restores; breaks again within 24–48 hours; charges still import while UI shows broken.
Adjust logic so only feed-level/auth errors mark the feed as broken; keep 434 account not found (and similar card-scoped errors) as card-specific RBRs instead of feed-broken UI state.
Issue OwnerCurrent Issue Owner: @mallenexpensifyUpwork Automation - Do Not Edit
Please re-state the problem that we are trying to solve in this issue.
NewDot marks the entire Chase company card feed as "broken" (red dot + "Card feed connection is broken" banner + reauthentication prompt) even when transactions continue importing and only specific individual cards have errors (e.g., error 434 "account not found"). OldDot does not exhibit this behavior for the same underlying card-specific errors.
What is the root cause of that problem?
The root cause is that isCardConnectionBroken() in CardUtils.ts:1001-1003 treats all non-allowlisted lastScrapeResult values as broken connections, with no distinction between feed-level errors and card-specific errors:
The allowlist at CONST/index.ts:106 is [200, 531, 530, 500, 666]. Error code 434 ("account not found") is not in this list, so any individual card with lastScrapeResult=434 is classified as having a broken connection.
The derived value in cardFeedErrors.ts:119-122 then OR-aggregates this per-card broken status into the feed level:
So if even one card in a Chase feed has lastScrapeResult=434, the entire feed's isFeedConnectionBroken becomes true. This propagates upward through shouldShowRbrForWorkspaceAccountID and shouldShowRbrForFeedNameWithDomainID to show the red dot on the workspace sidebar, feed selector, and navigation tab bar. The UI at WorkspaceCompanyCardsTableHeaderButtons.tsx:171 then shows the generic "Card feed connection is broken. Please log into your bank..." banner.
What changes do you think we should make in order to solve the problem?
Add 434 to BROKEN_CONNECTION_IGNORED_STATUSES in CONST/index.ts so that card-specific "account not found" errors no longer trigger the feed-level broken connection state. The updated allowlist would be [200, 434, 531, 530, 500, 666].
This is the minimal, targeted fix: error 434 means a specific card's bank account was not found (closed/removed), which is a card-scoped issue that should not mark the entire feed as disconnected. The feed connection itself is functioning fine (transactions still import for other cards).
Additionally, there is an inconsistency worth noting: getFeedConnectionBrokenCard() at CardUtils.ts:1091-1097 uses a simpler lastScrapeResult !== 200 check instead of the BROKEN_CONNECTION_IGNORED_STATUSES allowlist. This function should also be updated to use the same allowlist for consistency.
What alternative solutions did you explore? (Optional)
Threshold-based approach: Only mark a feed as broken when all (or most) cards have errors, rather than when any single card does. This would be a larger architectural change to the OR-aggregation logic in cardFeedErrors.ts and could mask genuine feed-level failures where only some cards have been scraped so far.
Separate error classification: Create distinct categories for feed-level errors (auth failures) vs card-level errors (account not found), with different UI messaging for each. This would be the most thorough fix but requires backend coordination to classify which scrape result codes are feed-level vs card-level, and new UI components for card-specific error states.
The allowlist approach (adding 434) is the simplest fix that addresses the reported behavior while maintaining the existing error detection for genuine feed-level failures.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, or @MelvinBot <your feedback> to refine this analysis.
changed the title [-]NewDot incorrectly marks feed broken for card-specific errors[/-][+][$250] NewDot incorrectly marks feed broken for card-specific errors[/+]on Feb 24, 2026
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
@situchan
This is regarding the regression test proposal
We have a test case to test the broken status. Not for account not found, How to initiate this error, Any snippet to run or workaround for this?
Adding 434 to the shared ignored-status list in #84803 also suppressed personal-card broken-connection detection, hiding the message and Fix card action. Fixed in #101045 by handling 434 separately for personal cards while preserving company-feed behavior.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ImprovementItem broken or needs improvement.
Activity
melvin-bot commentedon Feb 24, 2026
Triggered auto assignment to @garrettmknight (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.MelvinBot commentedon Feb 24, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
NewDot marks the entire Chase company card feed as "broken" (red dot + "Card feed connection is broken" banner + reauthentication prompt) even when transactions continue importing and only specific individual cards have errors (e.g., error 434 "account not found"). OldDot does not exhibit this behavior for the same underlying card-specific errors.
What is the root cause of that problem?
The root cause is that
isCardConnectionBroken()inCardUtils.ts:1001-1003treats all non-allowlistedlastScrapeResultvalues as broken connections, with no distinction between feed-level errors and card-specific errors:The allowlist at
CONST/index.ts:106is[200, 531, 530, 500, 666]. Error code 434 ("account not found") is not in this list, so any individual card withlastScrapeResult=434is classified as having a broken connection.The derived value in
cardFeedErrors.ts:119-122then OR-aggregates this per-card broken status into the feed level:So if even one card in a Chase feed has
lastScrapeResult=434, the entire feed'sisFeedConnectionBrokenbecomestrue. This propagates upward throughshouldShowRbrForWorkspaceAccountIDandshouldShowRbrForFeedNameWithDomainIDto show the red dot on the workspace sidebar, feed selector, and navigation tab bar. The UI atWorkspaceCompanyCardsTableHeaderButtons.tsx:171then shows the generic "Card feed connection is broken. Please log into your bank..." banner.What changes do you think we should make in order to solve the problem?
Add 434 to
BROKEN_CONNECTION_IGNORED_STATUSESinCONST/index.tsso that card-specific "account not found" errors no longer trigger the feed-level broken connection state. The updated allowlist would be[200, 434, 531, 530, 500, 666].This is the minimal, targeted fix: error 434 means a specific card's bank account was not found (closed/removed), which is a card-scoped issue that should not mark the entire feed as disconnected. The feed connection itself is functioning fine (transactions still import for other cards).
Additionally, there is an inconsistency worth noting:
getFeedConnectionBrokenCard()atCardUtils.ts:1091-1097uses a simplerlastScrapeResult !== 200check instead of theBROKEN_CONNECTION_IGNORED_STATUSESallowlist. This function should also be updated to use the same allowlist for consistency.What alternative solutions did you explore? (Optional)
Threshold-based approach: Only mark a feed as broken when all (or most) cards have errors, rather than when any single card does. This would be a larger architectural change to the OR-aggregation logic in
cardFeedErrors.tsand could mask genuine feed-level failures where only some cards have been scraped so far.Separate error classification: Create distinct categories for feed-level errors (auth failures) vs card-level errors (account not found), with different UI messaging for each. This would be the most thorough fix but requires backend coordination to classify which scrape result codes are feed-level vs card-level, and new UI components for card-specific error states.
The allowlist approach (adding 434) is the simplest fix that addresses the reported behavior while maintaining the existing error detection for genuine feed-level failures.
Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR, or@MelvinBot <your feedback>to refine this analysis.melvin-bot commentedon Feb 24, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)[-]NewDot incorrectly marks feed broken for card-specific errors[/-][+][$250] NewDot incorrectly marks feed broken for card-specific errors[/+]melvin-bot commentedon Feb 24, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022026385315414776648
34 remaining items
situchan commentedon Mar 30, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/78305/changes#r3008093130
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/619248
Regression Test Proposal
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-6fd1-abaa-9ad8-b17eec250ae4melvin-bot commentedon Mar 30, 2026
@mallenexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Mar 31, 2026
@mallenexpensify Eep! 4 days overdue now. Issues have feelings too...
mallenexpensify commentedon Apr 1, 2026
Payment Summary
Contributor+: @situchan paid $250 via Upwork
^ Test case created
thx
m-natarajan commentedon Apr 1, 2026
@situchan
This is regarding the regression test proposal
We have a test case to test the broken status. Not for
account not found, How to initiate this error, Any snippet to run or workaround for this?situchan commentedon Apr 2, 2026
I am also not sure, other than testing the broken status. @carlosmiceli maybe you can help?
carlosmiceli commentedon Apr 2, 2026
Sorry, not sure I understand the question, isn't the idea that account not found errors would not surface? Confused because this is a BE fix/test.
m-natarajan commentedon Apr 2, 2026
@carlosmiceli How to have
account not founderror on feed to test? Is this something Applause can do?carlosmiceli commentedon Apr 3, 2026
Do we have similar "account not found" error tests for Applause in other flows or features? Seems strange to me to test for this.
m-natarajan commentedon Apr 3, 2026
@carlosmiceli No similar test cases to test
carlosmiceli commentedon Apr 3, 2026
Yeah, dont need it here either.
nyomanjyotisa commentedon Sep 21, 2026
Adding
434to the shared ignored-status list in #84803 also suppressed personal-card broken-connection detection, hiding the message andFix cardaction. Fixed in #101045 by handling434separately for personal cards while preserving company-feed behavior.