-
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 🤔 |
@rlinoz , I would like to share the video with you so you know how I reproduced this issue VideoScreen.Recording.2024-10-29.at.08.38.37.mp4
|
No need to log in with a new account, sending an image as the first message to a new contact also resulted in a console error. Screen.Recording.2024-10-29.at.10.57.23.mov |
@rlinoz @Pujan92 @RachCHopkins this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
If I follow #50780 (comment) Let me try this: #50780 (comment) |
@rlinoz I'm still able to reproduce this issue on staging. Screen.Recording.2024-10-30.at.13.16.33.mp4 |
@rlinoz You can try to reproduce using conditions mentioned in #50780 (comment):
Screen.Recording.2024-10-30.at.18.11.13.mp4 |
I am having a really hard time trying to reproduce this, let me know if I am missing something in the video Screen.Recording.2024-10-30.at.09.30.50.movLooking at the logs that I think are from the comment above I see the previousUpdateID higher than the clientUpdateID clientUpdateID: 2660128276 And looking at the logs from my own request the same thing happens but no console error clientUpdateID: 2660954499 But looking at random |
@rlinoz I'm leaning towards the possibility of browser-specific bug here. Tested on Safari and the error doesn't appear, instead I had another error: You can try to reproduce using Chrome. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Nothing on latest chrome version: Anyway, maybe we can make sure that this comment is corret: #50780 (comment) |
@rlinoz I tested DM, IOU and sent an attachment there. I see that VIDEOScreen.Recording.2024-11-01.at.22.40.28.mp4 |
@rlinoz, @Pujan92, @RachCHopkins Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Pujan92 thoughts on the above? #50780 (comment) |
So we basically shouldn't be trying to set a File into the OnyxDB right? |
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: @Pujan92The text was updated successfully, but these errors were encountered: