App icon indicating copy to clipboard operation
App copied to clipboard

Android - Signup - App crashes when creating a new account

Open kavimuru opened this issue 4 years ago • 19 comments

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:

  1. Open app
  2. Enter any email address which does not have expensify account
  3. 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:

View all open jobs on GitHub

kavimuru avatar May 31 '22 20:05 kavimuru

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

melvin-bot[bot] avatar May 31 '22 20:05 melvin-bot[bot]

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 avatar May 31 '22 21:05 neil-marcellini

@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

rushatgabhane avatar May 31 '22 21:05 rushatgabhane

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.

neil-marcellini avatar May 31 '22 21:05 neil-marcellini

Triggered auto assignment to @TomatoToaster (Demolition), see https://stackoverflow.com/c/expensify/questions/8099 for more details.

melvin-bot[bot] avatar May 31 '22 21:05 melvin-bot[bot]

@neil-marcellini. full video

https://user-images.githubusercontent.com/43995119/171292880-05af2867-4737-4c2e-bda1-b1a43d44266b.mp4

mvtglobally avatar May 31 '22 22:05 mvtglobally

I'm wondering if the error I'm seeing here is related?

neil-marcellini avatar May 31 '22 22:05 neil-marcellini

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 avatar May 31 '22 22:05 marcaaron

@marcaaron the issue exists on #9060

rushatgabhane avatar May 31 '22 22:05 rushatgabhane

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

rushatgabhane avatar May 31 '22 22:05 rushatgabhane

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.

luacmartins avatar Jun 01 '22 16:06 luacmartins

Haven't gotten a chance to start on this yet, planning to later today.

TomatoToaster avatar Jun 03 '22 14:06 TomatoToaster

Still working on this one.

TomatoToaster avatar Jun 06 '22 14:06 TomatoToaster

Ah I couldn't get it to work still going to make a PR for this 🔜

TomatoToaster avatar Jun 09 '22 14:06 TomatoToaster

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.

TomatoToaster avatar Jun 10 '22 20:06 TomatoToaster

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.

marcaaron avatar Jun 15 '22 18:06 marcaaron

Reopening this since there was still an issue during the QA, see https://github.com/Expensify/App/issues/9480#issuecomment-1167743847 for context.

francoisl avatar Jun 27 '22 18:06 francoisl

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.

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.

TomatoToaster avatar Jun 27 '22 20:06 TomatoToaster

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.

aldo-expensify avatar Jun 29 '22 20:06 aldo-expensify