You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-01-17] Distance - 404 error appears in console after creating distance request #33985
Version Number: 1.4.22-0 Reproducible in staging?: Y Reproducible in production?: N 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Go to workspace chat
Click + > Request money > Distance
Create a distance request
Expected Result:
There will be no console error after creating distance request
Actual Result:
404 error shows up after creating distance request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
changed the title [-]Distance - 404 error appears in console after creating distance request[/-][+][HOLD for payment 2024-01-17] Distance - 404 error appears in console after creating distance request[/+]on Jan 10, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Activity
github-actions commentedon Jan 4, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Jan 4, 2024
Triggered auto assignment to @thienlnam (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.thienlnam commentedon Jan 4, 2024
I tested it myself and it also appears to try to fetch the same URL
thienlnam commentedon Jan 4, 2024
https://staging.expensify.com/1b96fa279dcd8a80ee9f.png?encryptedAuthToken=
thienlnam commentedon Jan 4, 2024
It's not causing any issues - but it kind of looks similar to an issue pointed back here #30319
thienlnam commentedon Jan 5, 2024
Okay, looks like that URL is for the optimistic receipt - the generic receipt image
import ReceiptGeneric from '@assets/images/receipt-generic.png';Going to see where this is hosted
bernhardoj commentedon Jan 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The receipt image can't be found for distance requests.
What is the root cause of that problem?
When we create a new distance request, we set a local asset image as the optimistic receipt image.
App/src/libs/actions/IOU.js
Lines 870 to 873 in 2d455bf
And the
isLocalFilecondition here doesn't consider the case of the web local asset.App/src/libs/ReceiptUtils.ts
Lines 69 to 70 in 2d455bf
So,
isLocalFileis always false.If
isLocalFileis false, we will try to load the image as if it's a remote image.App/src/components/ReportActionItem/ReportActionItemImage.js
Lines 64 to 73 in 2d455bf
What changes do you think we should make in order to solve the problem?
Add a new condition to
isLocalFileto check for the local file.situchan commentedon Jan 5, 2024
This is another regression from #33946
cc: @namhihi237
namhihi237 commentedon Jan 5, 2024
I can not reproduce it on a local, anyone can reproduce it.
namhihi237 commentedon Jan 5, 2024
Seem this issue only reproduce on the remote server.
namhihi237 commentedon Jan 5, 2024
Do we use right the domain host for the image
staging.expensify.com? when I update tostaging.new.expensify.com, it worksmvtglobally commentedon Jan 7, 2024
Still repro on build 1.4.22-2
bandicam.2024-01-06.14-20-41-599.mp4
thienlnam commentedon Jan 8, 2024
We're handling this regression in this PR #34030
thienlnam commentedon Jan 8, 2024
Verified this is fixed on staging now
[-]Distance - 404 error appears in console after creating distance request[/-][+][HOLD for payment 2024-01-17] Distance - 404 error appears in console after creating distance request[/+]melvin-bot commentedon Jan 10, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 10, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 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-01-17. 🎊