-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2023-05-23] [$2000] System displays a technical error message when handling an error (Auth CreateReportAction returned an error) #16637
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Can't test because site is down currently, will test once I can |
I am unable to reproduce this using the steps above |
2023-04-02.20.15.34.mp4I am able to reproduce the issue. |
Job added to Upwork: https://www.upwork.com/jobs/~01f06dab90106f3c26 |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @johnmlee101 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.System displays a technical error message when handling an error (Auth CreateReportAction returned an error) What is the root cause of that problem?The error reported by the server is an onyx id conflict, because the network request has already been sent What changes do you think we should make in order to solve the problem?We should not send this network request Line 43 in df10eeb + if (shouldFailAllRequests || shouldForceOffline) {
+ return Promise.reject(new HttpsError({
+ message: CONST.ERROR.FAILED_TO_FETCH
+ })
+ }
+ Lines 52 to 56 in df10eeb
- if (shouldFailAllRequests || shouldForceOffline) {
- throw new HttpsError({
- message: CONST.ERROR.FAILED_TO_FETCH,
- });
- } What alternative solutions did you explore? (Optional)Not Yet |
@johnmlee101 cc: @MitchExpensify |
@Santhosh-Sellavel, I thought the feature in staging is used to simulate a real life situation that would happen if the user has a failing network. If that is the case, the user is currently seeing a technical error message that talks about a code module if system throws an error. It is like seeing a console log error on the UI. The normal trend of error handling is to display clear actionable message. In this case the error message excluding the phrase: "Auth CreateReportAction returned an error" |
To make things clear. When system throws an error while user is trying to attach a file, the error should be: Expected Result: Unexpected error while posting the comment. Please try again later. Actual Result: Unexpected error while posting the comment. Please try again later. Auth CreateReportAction returned an error |
@Santhosh-Sellavel so you're saying this is purely a bug with our own internal flags for testing? Is there a way to better simulate failures without introducing bugs that wouldn't be visible if this happened on production? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.14-14 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 2023-05-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
@MitchExpensify Gentle bump for payment on this one. |
Offer sent for payment @jjcoffee and your "appeal" makes sense to me, I will not apply to 50% within 9 days merge penalty |
Thanks @MitchExpensify! Offer accepted. |
@MitchExpensify a gentle bump to settle payments. Thanks |
@johnmlee101, @jjcoffee, @MitchExpensify, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue only Checklist & payment is left out |
All paid and contracts ended - Thanks! |
Bump on these next steps @Santhosh-Sellavel #16637 (comment) |
I had this on my list but caught up with priority items. Will try and get it done this week |
Not critically overdue, @Santhosh-Sellavel has this on their radar |
@johnmlee101 Kind of an edge case, so regression test not need here let me know your thoughts thanks! |
@johnmlee101 Friendly bump to avoid to the overdue overlords and close this one out potentially 😄 |
Yeah we can avoid regressions for this I think |
Thanks everyone, closing! |
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:
Expected Result:
error message should not include technical details, and should include a clear, actionable message only
Actual Result:
system displays a technical error message (Auth CreateReportAction returned an error)
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.90-7
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
2023-03-28.11.52.39.mp4
Recording.148.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679994447012709
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: