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

[$500] IOU - Distance request with vague location created offline shows incorrect error online #36493

Closed
3 of 6 tasks
lanitochka17 opened this issue Feb 14, 2024 · 19 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 14, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.41
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4314136
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Launch app
  2. Turn off mobile data
  3. Tap fab
  4. Tap request money--- distance
  5. Tap start
  6. Enter SF and tap save
  7. Tap finish
  8. Enter LA and tap save
  9. Tap next
  10. Select a workspace
  11. Tap request
  12. Turn on mobile data

Expected Result:

In offline, with vague location distance request created after turning online must show correct error message "Unable to find the location for this address. Please edit the address and try again. ”

Actual Result:

In offline, with vague location distance request created after turning online shows incorrect error message "Unexpected error requesting money, please try again later" instead of "Unable to find the location for this address. Please edit the address and try again.”

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6379221_1707909726182.tes.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014b08208fbad4a9ac
  • Upwork Job ID: 1757776229611659264
  • Last Price Increase: 2024-02-21
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 14, 2024
@melvin-bot melvin-bot bot changed the title IOU - Distance request with vague location created offline shows incorrect error online [$500] IOU - Distance request with vague location created offline shows incorrect error online Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014b08208fbad4a9ac

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (External)

Copy link

melvin-bot bot commented Feb 14, 2024

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave5
CC @dylanexpensify

@jliexpensify
Copy link
Contributor

@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
@brunovjk
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Incorrect error message displayed in app for offline-created distance request when online.

What is the root cause of that problem?

In buildOnyxDataForMoneyRequest we always use a genericCreateFailureMessage for transaction failure:

errors: ErrorUtils.getMicroSecondOnyxError('iou.error.genericCreateFailureMessage'),
genericCreateFailureMessage: 'Unexpected error requesting money, please try again later',

What changes do you think we should make in order to solve the problem?

We need to add a "Unable to find the location for this address. Please edit the address and try again." at anguages/en.ts, sometjhing like:

error: {
    // ... (existing error messages)
    invalidLocation: 'Unable to find the location for this address. Please edit the address and try again.',
    // ... (other error messages)
}

And properly use it when the request fails due to invalid waypoints.

What alternative solutions did you explore? (Optional)

@c3024
Copy link
Contributor

c3024 commented Feb 20, 2024

@brunovjk

Could you be more specific about which conditions (with variables) will wel add this invalidLocation error. Also, isn't this error sent by the backend?

@melvin-bot melvin-bot bot removed the Overdue label Feb 20, 2024
@brunovjk
Copy link
Contributor

brunovjk commented Feb 20, 2024

@c3024 yes I can, but before can you answer me one thing? With the same steps for reproduction this issue has a different Expected Result. Are we dealing with a kind of new feature here? Thank you.

Copy link

melvin-bot bot commented Feb 21, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Feb 22, 2024
@jliexpensify
Copy link
Contributor

Bump @c3024

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 23, 2024
@brunovjk
Copy link
Contributor

I've been investigating and couldn't find a solution completely through the frontend. In addition to the new message "Unable to find the location for this address. Please edit the address and try again.", I believe there is a problem with the backend here, the issue report video doesn't show it but the request appears to be deleted without even the user "dismissing the error".

@jliexpensify
Copy link
Contributor

Bump @c3024 - can you confirm if this is a back-end issue? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Feb 25, 2024
@jliexpensify
Copy link
Contributor

Actually should be #wave6 - posted: https://expensify.slack.com/archives/C02MW39LT9N/p1708900139785349

@brunovjk
Copy link
Contributor

brunovjk commented Feb 25, 2024

@jliexpensify external like me do not have access to this archive right?

@jliexpensify
Copy link
Contributor

@brunovjk - if it's a back-end issue, we'll apply the Internal label for an Expensify Engineer to pick up.

From that point on, the engineer can determine if we need help from Contributors.

@c3024
Copy link
Contributor

c3024 commented Feb 26, 2024

@jliexpensify

Yes, the validation happens on backend so backend sending the correct error message is appropriate. Please apply Internal label. Thanks.

@jliexpensify jliexpensify removed the External Added to denote the issue can be worked on by a contributor label Feb 26, 2024
@jliexpensify jliexpensify added the Internal Requires API changes or must be handled by Expensify staff label Feb 26, 2024
Copy link

melvin-bot bot commented Feb 26, 2024

Current assignee @c3024 is eligible for the Internal assigner, not assigning anyone new.

@jliexpensify jliexpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 26, 2024
@neil-marcellini
Copy link
Contributor

This is basically due to the fact that we don't handle offline distance request errors very well. We have an issue to fix that here, [LOW] Distance: Handle errors with geocoding for offline distance requests, but no one has picked it up. I think we should close this in favor of that one, or at least HOLD on it @jliexpensify

@jliexpensify
Copy link
Contributor

Great, thanks for jumping in Neil. Closing (also requested by Greg)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

5 participants