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

Netsuite-App crashes when connecting to Netsuite with incorrect credentials #48682

Closed
4 of 6 tasks
IuliiaHerets opened this issue Sep 6, 2024 · 11 comments
Closed
4 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 6, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v9.0.30-7
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Log in to new dot with a new account and create a new workspace
  2. Navigate to settings > workspace > More features > Enable accounting
  3. Go to Accounting > Connect to Netsuite > Upgrade to Control > Got it
  4. When the Netsuite Setup RHP opens proceed with the setup
  5. Enter incorrect credentials when prompted and connect

Expected Result:

"Can't connect to NetSuite." error appears and app does not crash

Actual Result:

App crashes

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

0609.log

Bug6594941_1725595347741.2024-09-06_06_54_27.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

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

Copy link

melvin-bot bot commented Sep 6, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 6, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 6, 2024
Copy link
Contributor

github-actions bot commented Sep 6, 2024

👋 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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@etCoderDysto
Copy link
Contributor

Proposal

Offending PR: #46667

I can raise a quick PR if the author is not available at the time

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

Netsuite-App crashes when connecting to Netsuite with incorrect credentials

What is the root cause of that problem?

We are not applying optional chaining on options

const netsuiteConfig = policy?.connections?.netsuite?.options.config;

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

Use optional chaining on options

const netsuiteConfig = policy?.connections?.netsuite?.options?.config;

What alternative solutions did you explore? (Optional)

@war-in
Copy link
Contributor

war-in commented Sep 6, 2024

Ah sorry for this one 🙈
@etCoderDysto thanks for the proposal, I checked it and it's working correctly!
I can create a PR in a moment or you can do this if you want. Please let me know 🙏

@etCoderDysto
Copy link
Contributor

@war-in You are welcome! I think you can raise a PR since you are available.

@Julesssss
Copy link
Contributor

Julesssss commented Sep 6, 2024

PR fix merged. I'm going to CP to staging to resolve the blocker.

@Julesssss Julesssss removed the DeployBlockerCash This issue or pull request should block deployment label Sep 6, 2024
@Julesssss
Copy link
Contributor

CP successful, I marked it off the checklist

@Pujan92
Copy link
Contributor

Pujan92 commented Sep 26, 2024

@war-in I am seeing the crash while connecting Netsuite.

Screenshot 2024-09-26 at 17 33 34

@war-in
Copy link
Contributor

war-in commented Sep 30, 2024

@war-in I am seeing the crash while connecting Netsuite.

@Pujan92 is there an issue for this bug? Or could you create one and add some reproduction steps? 🙏
It'd be nice to have a dedicated place to discuss it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants