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

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

Closed
1 of 6 tasks
m-natarajan opened this issue Sep 12, 2024 · 19 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Sep 12, 2024

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
@m-natarajan m-natarajan added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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.

@MelvinBot
Copy link

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

@bernhardoj
Copy link
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;
}

@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Sep 13, 2024
@melvin-bot melvin-bot bot changed the title [Dev] Console Warning: Possible unhandled promise rejection [$250] [Dev] Console Warning: Possible unhandled promise rejection Sep 13, 2024
Copy link

melvin-bot bot commented Sep 13, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 13, 2024
Copy link

melvin-bot bot commented Sep 13, 2024

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

@aimane-chnaif
Copy link
Contributor

@bernhardoj's proposal looks good.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Sep 16, 2024

Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@dangrous
Copy link
Contributor

Sounds perfect. Assigning!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 17, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 18, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @aimane-chnaif

@stephanieelliott
Copy link
Contributor

PR was deployed to prod on 9/19 but it looks like the automation didn't work. Updating manually to add payment date

@stephanieelliott stephanieelliott changed the title [$250] [Dev] Console Warning: Possible unhandled promise rejection [HOLD for payment 2024-09-26] [$250] [Dev] Console Warning: Possible unhandled promise rejection Sep 24, 2024
@stephanieelliott stephanieelliott added Awaiting Payment Auto-added when associated PR is deployed to production and removed Needs Reproduction Reproducible steps needed labels Sep 24, 2024
Copy link

melvin-bot bot commented Sep 26, 2024

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

@bernhardoj
Copy link
Contributor

Requested in ND.

@JmillsExpensify
Copy link

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

@aimane-chnaif
Copy link
Contributor

@stephanieelliott I am still using upwork

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Sep 30, 2024

@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:

@aimane-chnaif
Copy link
Contributor

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

@stephanieelliott please. thx

@JmillsExpensify
Copy link

$250 approved for @bernhardoj

@stephanieelliott
Copy link
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

@stephanieelliott
Copy link
Contributor

All paid

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. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
Development

No branches or pull requests

7 participants