Skip to content

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

Closed

Description

@kavimuru

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

Activity

  1. MelvinBot commented on Jul 15, 2021

    @MelvinBot
    Contributor

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

  2. added
    DeployBlockerCash
    on Jul 15, 2021
  3. added
    Hourly
    and removed
    Daily
    on Jul 15, 2021
  4. OSBotify commented on Jul 15, 2021

    @OSBotify
    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.
  5. johnmlee101 commented on Jul 15, 2021

    @johnmlee101
    Contributor

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

  6. mvtglobally commented on Jul 15, 2021

    @mvtglobally

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

  7. Jag96 commented on Jul 15, 2021

    @Jag96
    Contributor

    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

  8. marcaaron commented on Jul 15, 2021

    @marcaaron
    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.

  9. marcaaron commented on Jul 15, 2021

    @marcaaron
    Contributor

    Is this only reproducible on iOS ?

  10. Jag96 commented on Jul 15, 2021

    @Jag96
    Contributor

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

  11. marcaaron commented on Jul 15, 2021

    @marcaaron
    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.

  12. Jag96 commented on Jul 16, 2021

    @Jag96
    Contributor

    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.

  13. marcaaron commented on Jul 16, 2021

    @marcaaron
    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 🤷‍♂️

  14. deleted a comment from marcaaron on Jul 16, 2021
  15. changed the title [-]iOS - Sign in - infinite spinner if login with old accounts[/-] [+]Sign in - infinite spinner for some users with incorrect NVP structure[/+] on Jul 16, 2021
  16. added
    Daily
    Internal
    and removed
    Hourly
    on Jul 16, 2021
  17. assigned and unassigned on Jul 16, 2021
  18. Jag96 commented on Jul 16, 2021

    @Jag96
    Contributor

    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.

  19. removed
    DeployBlockerCash
    on May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DailyEngineeringInternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions