-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-08-05] [$125] Chat - Onyx and DOMException console errors appear when sending an image in a DM #44603
Comments
Triggered auto assignment to @dylanexpensify ( |
Triggered auto assignment to @iwiznia ( |
👋 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:
|
@iwiznia 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 |
We think that this bug might be related to #vip-vsb |
@iwiznia confirmed reproducible |
In dev I have a billion errors, but not this one.... but also images are not working properly not sure why. |
I kept struggling with my dev env and still could not make images work there. Will look more on monday |
Job added to Upwork: https://www.upwork.com/jobs/~010b91b6cb691a5c72 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
@kavimuru @m-natarajan @izarutskaya I have tested and the image got sent. I think if it's just a console error without affecting the user, we do not have to block the deploy on it |
Upwork job price has been updated to $125 |
ProposalPlease re-state the problem that we are trying to solve in this issue."Onyx" and "Uncaught (in promise) DOMException" console errors appear when sending an image in a DM. The "Onyx" error only appears when the user is part of a workspace. What is the root cause of that problem?When saving attachmentInfo to Onyx when sending attachment, the Line 3675 in 4622e19
However the file selected from the image picker is not a purely JSON-compatible object, it contains functions too (eg. When we attempt to save such function to Onyx, it cannot be serialized and will throw error. What changes do you think we should make in order to solve the problem?Before using the saving the file data to Onyx here Line 3675 in 4622e19
Actually we don't need all the fields of the App/src/libs/ReportActionsUtils.ts Line 1047 in 55546bb
So we can replace The same needs to be done for the What alternative solutions did you explore? (Optional)Alternate solution 1:
Building on top of the above, a clearer naming could be Alternate solution 2: Example implementation pseudo code
Manual iteration should also work well. We can even do this sanitization inside |
Proposal updated with 2nd solution |
@nkdengineer thanks for proposing. Are you able to find the offending PR? Moreover, when I test your solution in Web, it raises another error: |
@nkdengineer can you put into an alternative solution 1, alternative solution 2 so it's clearer to select? |
@hoangzinh Sure, I've done that |
@nkdengineer's alternative solution 1 looks good to me #44603 (comment) 🎀👀🎀 C+ reviewed |
Current assignee @iwiznia is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Looks good to me too |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@hoangzinh The PR is here. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.13-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-08-05. 🎊 For reference, here are some details about the assignees on this 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:
|
Payment summary:
Please apply/request! |
@nkdengineer please accept offer when you can! |
@dylanexpensify Thanks for the offer, I accepted it 👍 |
Nice - paying now! |
Done! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when validating #42592
Version Number: 9.0.3-1
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:
Preconditions: Be a workspace member as a new Gmail account.
Expected Result:
There shouldn't be any console errors when sending an image.
Actual Result:
"Onyx" and "Uncaught (in promise) DOMException" console errors appear when sending an image in a DM. The "Onyx" error only appears when the user is part of a workspace.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6527021_1719554233249!staging.new.expensify.com-1719553282882.txt
Bug6527021_1719554233211.bandicam_2024-06-28_07-40-50-491.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dylanexpensifyThe text was updated successfully, but these errors were encountered: