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

[Due for payment 2025-03-17] [Due for payment 2025-03-13] [$250] iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined #57786

Open
Julesssss opened this issue Mar 4, 2025 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@Julesssss
Copy link
Contributor

Julesssss commented Mar 4, 2025

Problem

This crash has recently blown up on iOS --I don't see any crashes increasing on Android, though this could be the case.

Image

We don't have reproducible steps

Fatal Exception: facebook::jsi::JSError
Exception in HostFunction: Unhandled JS Exception: TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined

Stack Trace:
    at getOnboardingInitialPath (401791:32)
    at startOnboardingFlow         (401779:85)
    at anonymous                  (540755:66)
    at processNext                (70806:18)
    at _processUpdate             (70731:30)
    at anonymous                  (40510:22)

Solution:

Investigate stack trace

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021897037934087402019
  • Upwork Job ID: 1897037934087402019
  • Last Price Increase: 2025-03-04
Issue OwnerCurrent Issue Owner: @johncschuster
@Julesssss Julesssss added Daily KSv2 Improvement Item broken or needs improvement. Engineering labels Mar 4, 2025
@Julesssss
Copy link
Contributor Author

  • Shared with expert contributors for triage
  • Shared with deployers to figure out how this slipped through

@Julesssss Julesssss self-assigned this Mar 4, 2025
@Shahidullah-Muffakir
Copy link
Contributor

As mentioned in the Stack trace it is coming from here:

const isVsb = onboardingValues.signupQualifier === CONST.ONBOARDING_SIGNUP_QUALIFIERS.VSB;

and
const isIndividual = onboardingValues.signupQualifier === CONST.ONBOARDING_SIGNUP_QUALIFIERS.INDIVIDUAL;

Because null check is not added for signupQualifier.

like it is added here:

const isVsb = onboardingValues && 'signupQualifier' in onboardingValues && onboardingValues.signupQualifier === CONST.ONBOARDING_SIGNUP_QUALIFIERS.VSB;

@Julesssss
Copy link
Contributor Author

Hey @Shahidullah-Muffakir, thanks would you like to be assigned to resolving this? We don't have reproducable steps for verification but it should be an easy to resolve and verify in the crash logs

@Shahidullah-Muffakir
Copy link
Contributor

Hey @Shahidullah-Muffakir, thanks would you like to be assigned to resolving this? We don't have reproducable steps for verification but it should be an easy to resolve and verify in the crash logs

Sure, I can create a quick PR, the changes seems straight forward.

@Julesssss Julesssss added the External Added to denote the issue can be worked on by a contributor label Mar 4, 2025
@melvin-bot melvin-bot bot changed the title iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined [$250] iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021897037934087402019

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (External)

@Julesssss
Copy link
Contributor Author

Assigning @Shahidullah-Muffakir. For tests in the PR can you just add a couple of cases related to the onboarding flow. Something like:

  • Create new account > company > set company size

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 4, 2025
@Julesssss Julesssss added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 2025

📣 @Shahidullah-Muffakir You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Mar 4, 2025

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

@Julesssss
Copy link
Contributor Author

By happy coincidence @trjExpensify can reproduce this! He's going to verify on the AdHoc build

@trjExpensify
Copy link
Contributor

Confirmed

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Mar 6, 2025
@melvin-bot melvin-bot bot changed the title [$250] iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined [Due for payment 2025-03-13] [$250] iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined Mar 6, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 6, 2025
Copy link

melvin-bot bot commented Mar 6, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Mar 6, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.9-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-03-13. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Mar 6, 2025

@Julesssss @johncschuster @Shahidullah-Muffakir The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@johncschuster
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [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:

  • [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:

  • [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.

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

Do we agree 👍 or 👎

@johncschuster
Copy link
Contributor

@Shahidullah-Muffakir can you please post your Upwork profile? I'll need that so I can invite you to the job. Thanks!

@Shahidullah-Muffakir
Copy link
Contributor

Sure, here’s my Upwork profile:https://www.upwork.com/freelancers/~01a4e04674db05abb1, Thanks.

@johncschuster
Copy link
Contributor

johncschuster commented Mar 10, 2025

@Shahidullah-Muffakir Thank you! Please accept this offer!

@Shahidullah-Muffakir
Copy link
Contributor

@Shahidullah-Muffakir Thank you! Please accept this offer!

Offer Accepted, Thanks.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 10, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-03-13] [$250] iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined [Due for payment 2025-03-17] [Due for payment 2025-03-13] [$250] iOS - TypeError: TaskQueue: Error with task : Cannot read property 'signupQualifier' of undefined Mar 10, 2025
Copy link

melvin-bot bot commented Mar 10, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.10-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-03-17. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Mar 10, 2025

@Julesssss @johncschuster @Shahidullah-Muffakir The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants