Skip to content

[Due for payment 2025-12-30] Improve handling of Failed to execute 'put' on 'IDBObjectStore' error #75375

Closed

Description

@VickyStash

We have a lot of reports in Sentry with Failed to execute 'put' on 'IDBObjectStore' error reported: https://expensify.sentry.io/issues/6998316400/events/ad8318ed6ad3464ca7e343d1aa50cbab/events/?project=4510228107427840&query=user.email%3Ateam%40truehopecambodia.org&referrer=previous-event

Why this error is triggered:
This error occurs when non-serializable data is passed to Onyx. You can reproduce it on your end by pasting Onyx.set('bad', {test: new FormData()}); to the console on dev/staging.

TODOs:

  1. Define why this error was triggered for the users. What kind of the data was trying to be set to Onyx.
  2. Improve the handling of this error on the Onyx side not to throw an error. Just logging of the alert should be enough.
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    Daily
    Bug
    on Nov 18, 2025
  2. melvin-bot commented on Nov 18, 2025

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. pasyukevich commented on Nov 18, 2025

    @pasyukevich
    Contributor

    I would like to work on it

  4. moved this from HIGH to CRITICAL in [#whatsnext] #qualityon Nov 19, 2025
  5. pasyukevich commented on Nov 19, 2025

    @pasyukevich
    Contributor

    Updates:

    • The error Failed to execute 'put' on 'IDBObjectStore': function () { [native code] } could not be cloned appears on multiple pages, including profile settings and report pages, where files are uploaded. (Looks like it can be connected with the file uploading)
    • Continue looking for the root cause
  6. pasyukevich commented on Nov 20, 2025

    @pasyukevich
    Contributor

    Updates:

    • The theory from yesterday doesn’t seem valid.
    • Sentry Logs show that the problem mostly occurs during periods of user inactivity.
    • Continue looking for the root cause
  7. pasyukevich commented on Nov 21, 2025

    @pasyukevich
    Contributor

    Updates:

    • I was able to reproduce the issue on staging only by opening the app after 24 hours of inactivity — this triggers a full freeze and makes the app unusable.
    • Reviewed additional logs: some users encounter this issue during normal app usage as well.
    • The issue does not appear to depend on what the user is doing at the moment.
    • All other attempted reproduction scenarios did not lead to the issue.
  8. pasyukevich commented on Nov 24, 2025

    @pasyukevich
    Contributor

    I was able to reproduce the issue on prod too - that's how it looks from the user perspective (after 3-4 minutes freeze)

    Refreshing the page does not help

    Image
  9. 32 remaining items

  10. mountiny commented on Dec 29, 2025

    @mountiny
    Contributor

    I dont think we want to remove the throw but maybe improve the log so we can know a bit easier what is causing the error cc @VickyStash what do you think

  11. VickyStash commented on Dec 30, 2025

    @VickyStash
    ContributorAuthor

    I dont think we want to remove the throw but maybe improve the log so we can know a bit easier what is causing the error cc @VickyStash what do you think

    We already log the message like:
    Logger.logAlert('Attempted to set invalid data set in Onyx. Please ensure all data is serializable.');
    Which makes sense to me. I'm not sure we can be even more specific at this point, as the root cause (data that isn't serializable) can be different.
    So maybe we can leave it as is.

  12. mountiny commented on Dec 30, 2025

    @mountiny
    Contributor

    That sounds good to me

  13. pasyukevich commented on Dec 31, 2025

    @pasyukevich
    Contributor

    Thanks for clarification

    Then I think everything is implemented in scope of this issue

  14. mallenexpensify commented on Dec 31, 2025

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @eVoloshchak due $250 via NewDot

    @eVoloshchak plz complete the BZ checklist. I'm unsure if we need a test case here.

    Thx

  15. eVoloshchak commented on Jan 2, 2026

    @eVoloshchak
    Contributor

    BugZero Checklist:

    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: N/A

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: this is marked as CRITICAL, but we have disabled troubleshooting in prod and limited the length of the troubleshooting session to 10 minutes. The first point (disabled troubleshooting in prod) ensures that this won't come back. If you disagree and think an additional discussion is needed - please comment and I'll start one

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
      QA won't be able to properly test this, but they will be able to verify that troubleshooting is not present on prod, I think it's worh adding a small test for this

    Regression Test Proposal Template

    Regression Test Proposal

    Precondition:

    • Be on prod (not staging)

    Test:

    1. Go to Account -> Troubleshoot
    2. Verify there is no Record Troubleshoot Data button

    Do we agree 👍 or 👎

    Zapier Logs Run ID: 00040eee-5815-a23f-b62a-a44dcf02f334
  16. moved this from CRITICAL to AWAITING DEPLOYMENT in [#whatsnext] #qualityon Jan 5, 2026
  17. melvin-bot commented on Jan 6, 2026

    @melvin-bot

    @mallenexpensify Eep! 4 days overdue now. Issues have feelings too...

  18. mallenexpensify commented on Jan 7, 2026

    @mallenexpensify
    Contributor

    Thanks @eVoloshchak test created.

  19. moved this from AWAITING DEPLOYMENT to Done in [#whatsnext] #qualityon Jan 7, 2026
  20. trjExpensify commented on Jan 13, 2026

    @trjExpensify
    Contributor

    $250 approved for @eVoloshchak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

AutoAssignerNewDotQualityAwaiting PaymentBugDaily

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions