Infinite Loading spinner on Login screen
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Open App on Mobile E.cash.
- Enter username, press continue.
- Enter the password, press continue.
Expected Result:
Users should sign in to the app.
Actual Result:
Loader is shown the password page and it hangs there forever.
Workaround:
Close the app and restart.
Platform:
Where is this issue occurring?
- [x] Web - Possible
- [x] iOS - Possible
- [x] Android - Found here
- [x] Desktop App - Possible
- [x] Mobile Web - Possible
Version Number: latest
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Triggered auto assignment to @greg-schroeder (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
This is a serious issue that is aware of for a month but It just occurred again to me and thus it will come for many users. Thus need resolution.
Explanation
During app uses, we run many uncontrolled apis calls which require Auth token. When a user logs out, it is possible that many of these requests are still running and due to this reason, our queue will be paused. But as we are repeating the queue, it will not resume until we get the token back which causes this issue.
To permanently fix this, we have to flush the queue when the user is logged out.
Just faced the same issue on Desktop App.
Triggered auto assignment to @MitchExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @AndrewGable (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
I have personally experienced this issue, can confirm it's happening, so skipping Triage.
:wave: 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:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
Adding deploy blocker as this is only occurring on staging. I can reproduce on a fresh install as well.
To fix this. the best and easiest option is to flush the queue when the user logs out. As there won't be any call which uses auth token and should continue after logout.
Do we flush the queue here? https://github.com/Expensify/App/blob/main/src/libs/actions/SignInRedirect.js#L52
No. Here https://github.com/Expensify/App/blob/e511b1f70082ad965b5dc85117d18f4dce54287d/src/libs/API.js#L62. But this is not really clearing the queue which some requests are made after this statement has run. As per the image attached above, there was a request for Timer.
@AndrewGable Ah, I think I found it. Maybe we should unpause the queue when we signin. Which does not have any impact if the queue was already unpaused.
We do this for reauthenticate https://github.com/Expensify/App/blob/e511b1f70082ad965b5dc85117d18f4dce54287d/src/libs/API.js#L278
We can follow the same for SignIn https://github.com/Expensify/App/blob/e511b1f70082ad965b5dc85117d18f4dce54287d/src/libs/actions/Session.js#L207-L225.
Maybe if I am correct, this can be triaged and assigned to me.
Plus, We should also flush the offline queues when we flush the in-memory queue. I will try to experiment with this a bit.
Onyx.set(ONYXKEYS.NETWORK_REQUEST_QUEUE, []);
Triggered auto assignment to @jboniface (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@parasharrajat as mentioned in slack, the issue is yours. We will get it configured in Upwork.
posted to upwork and sent invite to rajat https://www.upwork.com/jobs/~01fede9fe7086b3d75
@AndrewGable @jboniface Be sure to fill out the Contact List!