-
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
[$250] Web - Attachment - Onyx and DataCloneError console rrrors when sending an image attachment #50780
Comments
Triggered auto assignment to @RachCHopkins ( |
@RachCHopkins 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 |
I can't repro this, I don't get any errors at all. I note the steps are very specific - does the account need to be brand new and also need to be gmail @IuliiaHerets ? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Onyx and DataCloneError console errors when sending an image attachment to a 1:1 DM. What is the root cause of that problem?When sending attachment as first message in a new chat room, a In App/src/libs/Middleware/SaveResponseInOnyx.ts Lines 26 to 32 in 927b40d
In the case of What changes do you think we should make in order to solve the problem?
request: JSON.parse(JSON.stringify(request)) We can limit this logic to apply only on const shouldParseRequest = request.command === WRITE_COMMANDS.ADD_ATTACHMENT
/* ... */
request: shouldParseRequest ? JSON.parse(JSON.stringify(request)) : request What alternative solutions did you explore? (Optional) |
@RachCHopkins From my testings, you can try to reproduce with the following conditions:
|
Strange, no, I can't repro. But I trust you @daledah, if you can, then that's good enough for me! |
Job added to Upwork: https://www.upwork.com/jobs/~021846724620826087266 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
@Pujan92, @RachCHopkins Eep! 4 days overdue now. Issues have feelings too... |
@Pujan92 can you check out the above proposal, please? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Onyx and DataCloneError console errors when sending an image attachment What is the root cause of that problem?This issue related RCA with issue 49329 and 44114 This issue occurs on the backend because when we call the
What changes do you think we should make in order to solve the problem?To resolve this issue, we need to make a change on the backend so that the //.src/libs/Middleware/SaveResponseInOnyx.ts#L12
const requestsToIgnoreLastUpdateID: string[] = [
WRITE_COMMANDS.OPEN_APP,
SIDE_EFFECT_REQUEST_COMMANDS.RECONNECT_APP,
WRITE_COMMANDS.CLOSE_ACCOUNT,
+ WRITE_COMMANDS.ADD_ATTACHMENT,
WRITE_COMMANDS.DELETE_MONEY_REQUEST,
SIDE_EFFECT_REQUEST_COMMANDS.GET_MISSING_ONYX_MESSAGES,
]; |
@Pujan92, @RachCHopkins 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@Pujan92 how do you feel about these proposals? |
Reviewing |
As both proposals stated, I think this needs to be fixed in the BE if possible, to correct the values of 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Im not very familiar with the updateIDs logic, but I will try to take a look today. |
If the backend doesn't have a solution to update it, I think we can still fix this on the frontend, and we can add it to |
Im not being able to repro this 🤔 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Waiting for proposals. |
Still watiting |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@rlinoz, @Pujan92, @RachCHopkins Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting for proposals and retest |
Waiting for proposals and retest |
Might get fixed here though #53417 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@rlinoz, @Pujan92, @RachCHopkins Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Looking here #53417 (comment) I will go ahead and close this issue on favor of that comment/issue. Let me know if you think I should reopen this one @kubabutkiewicz |
Hi, wanted to ask if this is still reproducible? I was trying today and no luck but I see that fix to backend about order of ids from here #51712 (comment) is deployed so maybe its also fixed that issue? |
I was never really able to reproduce this, can you please try @Pujan92? |
I tried when @rlinoz closed the issue and couldn't reproduce it. so it might be fixed with the backend fix as mentioned by @kubabutkiewicz. |
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: 9.0.49-0
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/5084384&group_by=cases:section_id&group_order=asc&group_id=292107
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
There shouldn't be any console errors.
Actual Result:
Onyx and DataCloneError console errors when sending an image attachment to a 1:1 DM.
Expensify.tsx:50 [Onyx] Attempted to set invalid data set in Onyx. Please ensure all data is serializable.
index.js:40 Uncaught (in promise) DataCloneError: Failed to execute 'put' on 'IDBObjectStore': function arrayBuffer() { [native code] } could not be cloned.
at index.js:40:15
at index.js:13:51
Workaround:
Unknown
Platforms:
Screenshots/Videos
1510.txt
Bug6634941_1728975190721.bandicam_2024-10-15_08-47-55-299.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rlinozThe text was updated successfully, but these errors were encountered: