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

Sign in - infinite spinner for some users with incorrect NVP structure #4058

Closed
kavimuru opened this issue Jul 15, 2021 · 12 comments
Closed
Assignees
Labels
Daily KSv2 DeployBlockerCash This issue or pull request should block deployment Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kavimuru
Copy link

kavimuru commented Jul 15, 2021

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open app
  2. Login

Expected Result:

User should be able to login

Actual Result:

User is unable to login. Infinite spinner
Issue repro after app reinstall

Workaround:

Unknown

Platform:

Where is this issue occurring?

Web
iOS ✔️
Android
Desktop App
Mobile Web

Version Number:
1.0.78.0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5152177_IMG_0959.mp4

Expensify/Expensify Issue URL:

View all open jobs on Upwork

@MelvinBot
Copy link

Triggered auto assignment to @johnmlee101 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@isagoico isagoico added the DeployBlockerCash This issue or pull request should block deployment label Jul 15, 2021
@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels Jul 15, 2021
@OSBotify
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.

@johnmlee101
Copy link
Contributor

@kavimuru Can you re-test this? It seems like we had an issue with our backend which may have caused this

@mvtglobally
Copy link

@johnmlee101 we are still able to repro. Video
Can you try to login with:
Mvtutest@gmail.com
Password1

@Jag96
Copy link
Contributor

Jag96 commented Jul 15, 2021

Looks like the same issue happens on web, looking at the logs it seems to be an Auth issue: logs

The error is similar to https://github.com/Expensify/Expensify/issues/170673, so I'm guessing this is related to https://github.com/Expensify/Auth/pull/5747. cc @marcaaron

@marcaaron
Copy link
Contributor

Hmm interesting. I've actually been seeing similar behavior for months locally. But the logs do make it seem like there is something we missed.

@marcaaron
Copy link
Contributor

Is this only reproducible on iOS ?

@Jag96
Copy link
Contributor

Jag96 commented Jul 15, 2021

I reproduced on web by using the credentials in #4058 (comment)

@marcaaron
Copy link
Contributor

Alright so I did some investigating and thought it might have to do with the pinned reports NVP.

Here's what mine looks like atm

Screen Shot 2021-07-15 at 1 13 55 PM

Ignoring the fact that there's a 0 in there for now 😄 ... we can see it's an array

tester's NVP

Screen Shot 2021-07-15 at 1 14 16 PM

Maybe there was some migration at some point? I reset tester's NVP and was able to log in. So I think there's nothing to do on the code side, but unsure how many accounts have this old NVP and will be blocked from logging in.

@Jag96
Copy link
Contributor

Jag96 commented Jul 16, 2021

Hmm interesting, I think if we can run a query to check it'd be worth it. Then if there are affected accounts we can add a migration.

@marcaaron
Copy link
Contributor

Honestly, I'm super confused how we were even able to end up with this NVP. It looks like the code that sets this was seeting a csv string before and then set an array but never object 🤷‍♂️

@Expensify Expensify deleted a comment from marcaaron Jul 16, 2021
@Jag96 Jag96 changed the title iOS - Sign in - infinite spinner if login with old accounts Sign in - infinite spinner for some users with incorrect NVP structure Jul 16, 2021
@Jag96 Jag96 added Daily KSv2 Internal Requires API changes or must be handled by Expensify staff and removed Hourly KSv2 labels Jul 16, 2021
@Jag96 Jag96 assigned Jag96 and unassigned johnmlee101 Jul 16, 2021
@Jag96
Copy link
Contributor

Jag96 commented Jul 16, 2021

After investigating it looks like there are only 3 affected accounts, and it seems that they're still able to load e.cash without any issues, so closing this one out. I'll clean up the 3 affected accounts in the internal issue.

@Jag96 Jag96 closed this as completed Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 DeployBlockerCash This issue or pull request should block deployment Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

8 participants