Skip to content

Emails-Message email notification is not received #63402

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.1.56-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/6200824
Email or phone of affected tester (no customers): agexptest+cvp0206.5@gmail.com
Issue reported by: Applause Internal Team
Device used: Samsung S23FE/ Android 14
App Component: Notifications

Action Performed:

  1. Go to staging.expensify.com
  2. Sign up with a Gmail account by selecting "Organize my own expenses"
  3. Select "Get paid back from my employer" from the intent selector and complete the onboarding flow
  4. Go to OD and set USD as the Report currency in the individual workspace
  5. Back to ND, create a valid scan expense and submit it to a non-existent account (User B)
  6. Send any message in the expense thread
  7. Wait around 10 minutes, and go to the email inbox and look for the email with the message notification

Expected Result:

The message email notification is received.

Actual Result:

The message email notification is not received.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6849215_1748911388968.No_email_notification-Create_expense.mp4
Bug6849215_1748911388957.No_email_notification-Email_client.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Jun 3, 2025
  2. melvin-bot commented on Jun 3, 2025

    @melvin-bot

    Triggered auto assignment to @marcaaron (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. melvin-bot commented on Jun 3, 2025

    @melvin-bot

    Triggered auto assignment to @maddylewis (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.

  4. melvin-bot commented on Jun 3, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Jun 3, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. rafecolton commented on Jun 3, 2025

    @rafecolton
    Member

    Going to remove the DeployBlocker label so I can finish deploying web-secure

  7. removed
    DeployBlocker
    on Jun 3, 2025
  8. 5 remaining items

  9. marcaaron commented on Jun 10, 2025

    @marcaaron
    Contributor

    RequestMoney logs. Nothing is jumping out at me. Is this reproducible 100% of the time or happens sporadically? Any more details to share?

    Queueing report preview notification for instantly submitted report 5754671050847380 to 20001017
    Sending 'Report_Preview' to 'agexptest+cvp0206m3@gmail.com' at ''''2025-06-03 00:10:38''''
    Queued report preview notification for report 5754671050847380 to agexptest+cvp0206m3@gmail.com

  10. marcaaron commented on Jun 10, 2025

    @marcaaron
    Contributor

    I think we would have seen an exception if it failed to send. Can you ensure that there are no filters preventing this email from showing up and also check spam?

  11. added
    Weekly
    and removed
    Hourly
    on Jun 10, 2025
  12. marcaaron commented on Jun 10, 2025

    @marcaaron
    Contributor

    Bumping the priority down on this since it's not a blocker.

  13. mitarachim commented on Jun 11, 2025

    @mitarachim
    Author

    Hello @marcaaron QA team is still able to reproduce the issue on the latest build v9.1.64-0. We've confirmed that there are no filters preventing the email from appearing, and it hasn't been received in the spam folder either.

    Repro.63402-2.mp4
  14. marcaaron commented on Jun 11, 2025

    @marcaaron
    Contributor

    Sorry, what email are you expecting to see? Can you give an example or describe it?

  15. marcaaron commented on Jun 11, 2025

    @marcaaron
    Contributor

    Ok I think you meant the notification with the "comment" in this case not the intro email. Hmm... I'm trying to reproduce this locally and what I'm seeing is that we have two log lines:

    BedrockWorkerManager.php we@dont.know !script! ?api? [info] ReportUtils - Skipping email because all messages are from the current user. ~~ email: 'asdfasfasdf223423@asdfasdfasdf.com'
    BedrockWorkerManager.php we@dont.know !script! ?api? [info] ReportUtils - No new unread comments for this user so we are skipping the notification

    So, that means for one of our users we skipped because it's from the current user. But not indication why it was skipped for the other user. I can reproduce this locally so I assume it's widespread.

  16. added
    Daily
    and removed
    Weekly
    on Jun 11, 2025
  17. marcaaron commented on Jun 11, 2025

    @marcaaron
    Contributor

    Oh hmm interesting the other user is not in the participants list 🤔

  18. marcaaron commented on Jun 11, 2025

    @marcaaron
    Contributor

    @rlinoz I'm confused about how this flow is supposed to work these days with GetReportForEmailNotification command. I suspect the participant is maybe getting filtered out there?

  19. marcaaron commented on Jun 11, 2025

    @marcaaron
    Contributor

    Actually I'm not sure now. I think this is just the default behavior. This person is not considered a participant because they have not taken a "notifiable" action on the report. I think we can close this, but I don't see how this was "not reproducible on production"??

    @cristipaval you are the last person to mess with this, but it was 2 years ago. Maybe you can confirm.

  20. rlinoz commented on Jun 11, 2025

    @rlinoz
    Contributor

    This person is not considered a participant because they have not taken a "notifiable" action on the report.

    Yeah, I think you got this right. If the comment had been on the submitted report the manager should get the email, but not in the transaction thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions