Skip to content

[HOLD for payment 2024-09-26] [$250] [Dev] Console Warning: Possible unhandled promise rejection #49060

Closed

Description

@m-natarajan

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.0.30-9
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @c3024
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1726072317575939?thread_ts=1726072125.690969&cid=C049HHMV9SM

Action Performed:

Logon to ND on iOS App

Expected Result:

No console warning

Actual Result:

Console Warning
Warning: Possible unhandled promise rejection

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834518653490433368
  • Upwork Job ID: 1834518653490433368
  • Last Price Increase: 2024-09-13
Issue OwnerCurrent Issue Owner: @aimane-chnaif

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 12, 2024
  2. melvin-bot commented on Sep 12, 2024

    @melvin-bot

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

  3. MelvinBot commented on Sep 12, 2024

    @MelvinBot
    Contributor

    This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

  4. bernhardoj commented on Sep 12, 2024

    @bernhardoj
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Console warning when open native app.

    What is the root cause of that problem?

    When we open the app, the first route is the bottom tab navigator which has an empty path.

    [NAVIGATORS.BOTTOM_TAB_NAVIGATOR]: {
    path: ROUTES.ROOT,
    initialRouteName: SCREENS.HOME,

    ROOT: '',

    The warning is shown when we pass the empty string to the URL constructor.

    App/src/libs/actions/Report.ts

    Lines 2683 to 2685 in 7748eff

    if (new URL(url).searchParams.get('exitTo') === ROUTES.WORKSPACE_NEW) {
    return;
    }

    What changes do you think we should make in order to solve the problem?

    Make sure the url is not empty before passing it to the URL constructor.

    if (url && new URL(url).searchParams.get('exitTo') === ROUTES.WORKSPACE_NEW) {
        return;
    }
    
  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 13, 2024
  6. changed the title [-][Dev] Console Warning: Possible unhandled promise rejection[/-] [+][$250] [Dev] Console Warning: Possible unhandled promise rejection[/+] on Sep 13, 2024
  7. melvin-bot commented on Sep 13, 2024

    @melvin-bot
  8. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 13, 2024
  9. melvin-bot commented on Sep 13, 2024

    @melvin-bot

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

  10. 12 remaining items

  11. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Sep 24, 2024
  12. melvin-bot commented on Sep 26, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@stephanieelliott)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1834518653490433368/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  13. bernhardoj commented on Sep 27, 2024

    @bernhardoj
    Contributor

    Requested in ND.

  14. JmillsExpensify commented on Sep 27, 2024

    @JmillsExpensify
    Contributor

    @stephanieelliott mind confirming this payment summary when you're back online? Thank you!

  15. aimane-chnaif commented on Sep 30, 2024

    @aimane-chnaif
    Contributor

    @stephanieelliott I am still using upwork

  16. stephanieelliott commented on Sep 30, 2024

    @stephanieelliott
    Contributor

    @aimane-chnaif are you able to request via NewDot? It looks like are eligible for ND payments, and we would prefer to pay in ND rather than Upwork if it's ok with you. Otherwise, please let me know so that I can extend the offer to you in Upwork.

    Summarizing payment on this issue:

  17. aimane-chnaif commented on Sep 30, 2024

    @aimane-chnaif
    Contributor

    Otherwise, please let me know so that I can extend the offer to you in Upwork.

    @stephanieelliott please. thx

  18. JmillsExpensify commented on Sep 30, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @bernhardoj

  19. stephanieelliott commented on Oct 3, 2024

    @stephanieelliott
    Contributor

    Hey @aimane-chnaif I extended the offer to you in Upwork, please accept when you get a chance! https://www.upwork.com/nx/wm/offer/104253282

  20. stephanieelliott commented on Oct 3, 2024

    @stephanieelliott
    Contributor

    All paid

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions