Android - Signup - App crashes when creating a new account
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
- Enter any email address which does not have expensify account
- Tap continue
Expected Result:
User is taken to magic link sent screen
Actual Result:
App crashed with message Uh -oh something went wrong!
Workaround:
unknown
Platform:
Where is this issue occurring?
- Android
Version Number: 1.1.70-1 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/171282377-0c461567-be54-4972-9b5b-2616e09510a3.mp4
Expensify/Expensify Issue URL: Issue reported by: Applause internal team Slack conversation:
Triggered auto assignment to @neil-marcellini (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
The uploaded video doesn't show the bug, and I was unable to reproduce running on the simulator with the latest from main. I will ping #expensify-open-source to see if someone can reproduce this on an actual Android device.
https://user-images.githubusercontent.com/26260477/171288354-ecf2dcd0-febe-4145-b19e-8dbed5cc2895.mov
@neil-marcellini the bug is reproducible on a physical Android device (Pixel 6, Android 12)
v1.1.70-1 (Production, main and everything) Fire here?
https://user-images.githubusercontent.com/29673073/171289609-26b86e98-a3c2-42e4-83d7-0b7dd1a7c8bb.mp4
Cool, thanks @rushatgabhane. I think this should probably be internal since it might have to do with our API. I'll send it to the demolition team. I would take it myself if I had an android.
Triggered auto assignment to @TomatoToaster (Demolition), see https://stackoverflow.com/c/expensify/questions/8099 for more details.
@neil-marcellini. full video
https://user-images.githubusercontent.com/43995119/171292880-05af2867-4737-4c2e-bda1-b1a43d44266b.mp4
I'm wondering if the error I'm seeing here is related?
I think I know the cause. Can someone please check to see if this exists on my branch here -> https://github.com/Expensify/App/pull/9060
@marcaaron the issue exists on #9060

I'm wondering if the error I'm seeing https://github.com/Expensify/App/pull/8855#issuecomment-1142696925 is related?
@neil-marcellini yep, looks like it. I'm gettin the above error on signing up with a new acc
Ah this seems like this issue that I created this week - https://github.com/Expensify/App/issues/9255. It's been happening for a while now. I'm gonna close that issue in favor of this one.
Haven't gotten a chance to start on this yet, planning to later today.
Still working on this one.
Ah I couldn't get it to work still going to make a PR for this 🔜
PR up for this but feels like a band-aid not a real solution. I'm not sure if there's a better solution to this. After investigating and trying to recreate this (hadn't been able to on emulator obviously) I think this should at least address the problem.
I looked at the linked solution, but it seems like it would briefly display something like Not ? instead of Not [email protected]? in the cases where it would previously crash. Maybe better to just show nothing.
Reopening this since there was still an issue during the QA, see https://github.com/Expensify/App/issues/9480#issuecomment-1167743847 for context.
I looked at the linked solution, but it seems like it would briefly display something like
Not ?instead ofNot [email protected]?in the cases where it would previously crash. Maybe better to just show nothing.
I guess I could conditionally render the whole block if the props.credentials.login exists. I'll start with that, but I think this is a bandaid solution and will still likely cause the API error mentioned right above. I'm guessing the fact that props.credentials.login doesn't is causing the problem.
This has been fixed now.
See https://github.com/Expensify/Terraform/commit/3d54c66dcf97c1e72867a2dfee02a1177ce155c3 and https://github.com/Expensify/App/issues/9564#issuecomment-1170443845
Summary: There is a special firewall for requests with command User_SignUp to prevent fraud. Requestw coming from Android have a poor bot score and we were denying them.