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

[HOLD for payment 2024-09-18] Invoice - Creating invoice display unexpected error #48701

Closed
4 of 6 tasks
IuliiaHerets opened this issue Sep 6, 2024 · 16 comments
Closed
4 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 6, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.0.30-9
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch app
  2. Tap fab-- new workspace
  3. Tap fab -- send invoice selecting a user

Expected Result:

Creating invoice must not display unexpected error.

Actual Result:

Creating invoice display unexpected error.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6595025_1725603946161.Screenrecorder-2024-09-06-11-50-50-546_compress_1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @adelekennedy
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@IuliiaHerets
Copy link
Author

@adelekennedy FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@ChavdaSachin
Copy link
Contributor

BE error,
Onyx data

{
    "jsonCode": 402,
    "message": "402 missing companyName or companyWebsite",
    "onyxData": [],
    "requestID": "8bee463eb9014856-BOM"
}

@adelekennedy adelekennedy added the Internal Requires API changes or must be handled by Expensify staff label Sep 8, 2024
@adelekennedy
Copy link

@cristipaval adding you here for a quick check - I can reproduce this and this seems like something we should address ASAP - is this being addressed anywhere else?

@melvin-bot melvin-bot bot added the Overdue label Sep 10, 2024
@rlinoz rlinoz self-assigned this Sep 10, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 10, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Sep 10, 2024

Cristi is on parental leave so I will take this over.

@VickyStash
Copy link
Contributor

There are still a couple of issues related to invoicing creation on the main which I can see:

  1. The user can send the invoice even from the workspace where invoicing feature is disabled. It should be fixed with this PR, but I'm waiting for API fixes to open the PR for the review.
problem_1.mp4
  1. API doesn't return invoice information inside policy for OpenApp API call. It makes the app ask a user about the Company name and Company website every time the user re-login the app and tries to send the invoice.

cc @madmax330

@rlinoz
Copy link
Contributor

rlinoz commented Sep 11, 2024

@VickyStash I would add to the above list that if you use a fake URL the API will return an error but we are not displaying that anywhere and we are not clearing the onyx data.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 11, 2024
@melvin-bot melvin-bot bot changed the title Invoice - Creating invoice display unexpected error [HOLD for payment 2024-09-18] Invoice - Creating invoice display unexpected error Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.31-26 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-09-18. 🎊

Copy link

melvin-bot bot commented Sep 11, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@rlinoz] The PR that introduced the bug has been identified. Link to the PR:
  • [@rlinoz] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rlinoz] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@rlinoz] Determine if we should create a regression test for this bug.
  • [@rlinoz] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@VickyStash
Copy link
Contributor

@VickyStash I would add to the above list that if you use a fake URL the API will return an error but we are not displaying that anywhere and we are not clearing the onyx data.

@rlinoz Could you please provide more exact steps to reproduce it?

@rlinoz
Copy link
Contributor

rlinoz commented Sep 12, 2024

@VickyStash my bad we actually show a RBR, but there is not much context to what happened.

Here are the steps:

  1. Start the send invoice flow for the first time
  2. Input fake data for the company, like test and https://test.com
  3. Verify the backend response for SendInvoice is something like:
{
  "jsonCode": 507,
  "message": "507 Stripe error 'invalid_request_error': Not a valid URL",
  "additionalData": {
    "errorMessage": "Not a valid URL",
    "errorType": "invalid_request_error"
  },
  "onyxData": [],
  "requestID": "8c207d0978f14e0b-SOD"
}
  1. Try to send a new invoice to someone
  2. Verify the screen to fill company data doesn't show up and now you get the following erro:
{
  "jsonCode": 402,
  "message": "402 missing companyName or companyWebsite",
  "onyxData": [],
  "requestID": "8c207d67af8c4e0b-SOD"
}
Screen.Recording.2024-09-12.at.11.11.27.mov

@VickyStash
Copy link
Contributor

@rlinoz I've fixed the failure data so now the company name and website will be cleared out if the response was unsuccessful.
That's how it looks:

video1.mp4

Errors:
Error1
error2

Let me know if we need to change anything. cc @madmax330

@rlinoz
Copy link
Contributor

rlinoz commented Sep 12, 2024

Yeah, that looks good to me

Copy link

melvin-bot bot commented Sep 18, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@rlinoz
Copy link
Contributor

rlinoz commented Sep 18, 2024

I believe we can close this one.

@rlinoz rlinoz closed this as completed Sep 18, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
Development

No branches or pull requests

6 participants