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

Web – Xero – Error page 500 appears when connect to Xero #49156

Closed
1 of 6 tasks
IuliiaHerets opened this issue Sep 13, 2024 · 37 comments
Closed
1 of 6 tasks

Web – Xero – Error page 500 appears when connect to Xero #49156

IuliiaHerets opened this issue Sep 13, 2024 · 37 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff

Comments

@IuliiaHerets
Copy link

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.34-2
Reproducible in staging?: Y
Reproducible in production?: N
Issue was found when executing this PR: #48519
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/

  2. Log in with expensifail account

  3. Create a workspace

  4. Enable "Accounting" in the "More features" page.

  5. Navigate to "Accounting"

  6. Connect to Xero

  7. Enable 2 FA

  8. Enter Xero credentials

  9. Click on Continue with one organization

Expected Result:

The sync is complete

Actual Result:

Error page 500 appears

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6601939_1726210086452.Xero.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 13, 2024
Copy link

melvin-bot bot commented Sep 13, 2024

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

Copy link

melvin-bot bot commented Sep 13, 2024

Triggered auto assignment to @sakluger (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 13, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 13, 2024
Copy link
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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

@nyomanjyotisa cc @ikevin127 @Beamanator this deploy blocker was found while QAing your PR, could you please let me know if you have any additional context

@nyomanjyotisa
Copy link
Contributor

-1-New-Expensify.25.mp4

Can't reproduce on latest main^

@luacmartins
Copy link
Contributor

This kinda looks like an API issue to me with the oauth callback. @grgia can you reproduce this on staging?

@luacmartins
Copy link
Contributor

Logs

Couldn't get valid connection data ~~ integration: 'xero' policyID: '84A1663F6E414ACE' data: 'is_temp_logs54a6cbb0-f8e6-4426-8b30-ca2072979ae9.log' class: 'ExpensifyException' msg: 'Invalid connection configuration' code: '410'
Couldn't load Xero connection data ~~ policyID: '84A1663F6E414ACE' class: 'ExpensifyException' msg: 'Invalid connection configuration' code: '410'

@luacmartins
Copy link
Contributor

We can see the URL is staging.expensify.com too. @grgia maybe this is a web blocker. Please confirm.

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

looking @luacmartins

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

@mananjadhav @dangrous I see you've been working on Xero stuff, maybe you have more info on the above? Still looking into this being a web blocker @luacmartins

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

Also cc @francoisl

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

I'm 99% sure we can remove this from the app deploy blocker list, works in staging for me

@grgia
Copy link
Contributor

grgia commented Sep 13, 2024

image

Gonna close this out @luacmartins

@grgia grgia closed this as completed Sep 13, 2024
@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Sep 13, 2024
@IuliiaHerets
Copy link
Author

QA team can reproduce this issue in the latest build - v9.0.39-0. Cannot reproduce the issue on an incognito window.

Recording.4011.mp4

@IuliiaHerets IuliiaHerets reopened this Sep 21, 2024
@grgia grgia added Daily KSv2 and removed Hourly KSv2 labels Sep 23, 2024
@lakchote
Copy link
Contributor

I've investigated, the Xero's connection config is not in a correct state for the policy ID 48F701BD3789D925.

Do we know why the connection config is getting into that state?

Honestly, I do not have the answer to that question. cc @francoisl maybe you'll have the answer? Otherwise, we'd need to try to reproduce that state. My guess would be an incomplete setup flow triggers that state.

@melvin-bot melvin-bot bot added the Overdue label Sep 25, 2024
@sakluger
Copy link
Contributor

I'm going to post in QA in Slack to ask for a retest.

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
@m-natarajan
Copy link

Bug is not reproducible anymore.

bandicam.2024-09-26.15-39-01-419.mp4

@sakluger
Copy link
Contributor

Okay sounds like this is fixed. Closing!

@mananjadhav
Copy link
Collaborator

I was able to reproduce this recently on staging if you check the video attached here. So I am not sure if we did something that fixed it.

@trjExpensify
Copy link
Contributor

Yeah, I'm not convinced this is fixed personally.

@trjExpensify
Copy link
Contributor

I'd be curious for Franc's take on Lucien's q above before closing in haste.

@trjExpensify trjExpensify reopened this Sep 27, 2024
@trjExpensify trjExpensify moved this from Done to Polish in [#whatsnext] #wave-collect Sep 27, 2024
@mananjadhav
Copy link
Collaborator

Yeah I haven't got a chance to look at this again. But I've always got this when I try a fresh login and first time sync. I have a few workspaces connected to other accounting integrations for my QA. But I think this would have to be fixed internally. The error page that we see is on staging.expensify.com ie the OldDot.

Few things that come on top of my head are:

  1. Payload size must be causing the issue? (highly likely)
  2. Any rate limits per IP or from Xero?
  3. Any backend bug (less likely as subsequent sync work fine).

@sakluger
Copy link
Contributor

Got it, sorry for closing this one prematurely. @francoisl - any thoughts on Lucien's question?

Copy link

melvin-bot bot commented Sep 27, 2024

@sakluger this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@francoisl
Copy link
Contributor

When that happens, can you try to open https://staging.expensify.com and https://staging.new.expensify.com in separate tabs, and check if you're signed in the same Expensify account in both?

From what I'm seeing in the logs for the rayID 8c25fa7d6995ca59 from the screencast in the OP, there are 2 separate accounts involved - [email protected], and a gmail address.
(logs1, logs2 by policyID).

Because of that, the backend thinks you're trying to update a policy you don't have access to, and returns an error. I'm not sure why it ends up as a "bad gateway" error though.

@melvin-bot melvin-bot bot added the Overdue label Sep 30, 2024
@trjExpensify trjExpensify moved this from Polish to HOT PICKS in [#whatsnext] #wave-collect Sep 30, 2024
@sakluger
Copy link
Contributor

From what I'm seeing in the logs for the rayID 8c25fa7d6995ca59 from the screencast in the OP, there are 2 separate accounts involved

I would expect us to return an error in this scenario, but maybe we should use a more descriptive error than a 500?

@melvin-bot melvin-bot bot removed the Overdue label Sep 30, 2024
@sakluger
Copy link
Contributor

sakluger commented Oct 2, 2024

@IuliiaHerets could you please try this again and check @francoisl's question above?

When that happens, can you try to open https://staging.expensify.com/ and https://staging.new.expensify.com/ in separate tabs, and check if you're signed in the same Expensify account in both?

@IuliiaHerets
Copy link
Author

@sakluger Issue is not reproducible now

bandicam.2024-10-03.09-07-55-576.mp4

@melvin-bot melvin-bot bot added the Overdue label Oct 4, 2024
@sakluger
Copy link
Contributor

sakluger commented Oct 6, 2024

Okay, since @grgia couldn't reproduce before and now @IuliiaHerets can't reproduce, we can close it out again. Feel free to reopen if it happens again.

@sakluger sakluger closed this as completed Oct 6, 2024
@melvin-bot melvin-bot bot removed Overdue labels Oct 6, 2024
@github-project-automation github-project-automation bot moved this from HOT PICKS to Done in [#whatsnext] #wave-collect Oct 6, 2024
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. Daily KSv2 Engineering Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff
Projects
No open projects
Status: Done
Development

No branches or pull requests

10 participants