Skip to content

FIRESTORE (12.9.0) INTERNAL ASSERTION FAILED: Unexpected state (ID: b815) CONTEXT: {"Pc":"TypeError: Cannot read properties of undefined (reading 'tt') #9794

@opack

Description

@opack

Operating System

Android 16

Environment (if applicable)

Chrome Mobile WebView 146.0.7680, Pixel 7

Firebase SDK Version

12.9.0

Firebase SDK Product(s)

Firestore

Project Tooling

  • Using Vue.js with Quasar (and thus Capacitor), deployed on Android.
  • Using Firebase 12.9.0
  • Here are my dependencies, in case some interaction exists 🤷‍♂️
        "@capacitor-community/in-app-review": "^8.0.0",
        "@capacitor/app": "^8.1.0",
        "@capacitor/core": "^8.3.0",
        "@capacitor/device": "^8.0.2",
        "@quasar/extras": "^1.17.0",
        "@revenuecat/purchases-capacitor": "^12.3.0",
        "@revenuecat/purchases-capacitor-ui": "^12.3.0",
        "@revenuecat/purchases-js": "^1.29.1",
        "@sentry/vue": "^10.39.0",
        "axios": "^1.13.5",
        "driver.js": "^1.4.0",
        "firebase": "^12.9.0",
        "javascript-time-ago": "^2.6.2",
        "marked": "^17.0.3",
        "pinia": "^3.0.4",
        "quasar": "^2.18.6",
        "vue": "^3.5.28",
        "vue-i18n": "^11.2.8",
        "vue-router": "^5.0.2"
    
  • Here are the dependencies on the Capacitor project:
        "@capacitor-community/in-app-review": "^8.0.0",
        "@capacitor/android": "^8.3.0",
        "@capacitor/app": "^8.1.0",
        "@capacitor/core": "^8.3.0",
        "@capacitor/device": "^8.0.2",
        "@capacitor/ios": "^8.3.0",
        "@capacitor/keyboard": "^8.0.2",
        "@revenuecat/purchases-capacitor": "^12.3.0",
        "@revenuecat/purchases-capacitor-ui": "^12.3.0"
    

Detailed Problem Description

Hi!

I have users on my app that unexpectedly have this issue, which happens anywhere in the application :

FIRESTORE (12.9.0) INTERNAL ASSERTION FAILED: Unexpected state (ID: b815) CONTEXT: {"Pc":"TypeError: Cannot read properties of undefined (reading 'tt')\n    at Cae (https://localhost/assets/index-DVWOlrnU.js:39:2270)\n    at vae.onNext (https://localhost/assets/index-DVWOlrnU.js:38:37885)\n    at https://localhost/assets/index-DVWOlrnU.js:38:37092\n    at https://localhost/assets/index-DVWOlrnU.js:38:37313\n    at https://localhost/assets/index-DVWOlrnU.js:42:31875\n    at https://localhost/assets/index-DVWOlrnU.js:42:32274"}

Sentry pinpointed it in the file @firebase\firestore\dist\common-3cb50c20.esm.js on __PRIVATE__fail (line 197, on the throw instruction below):

        r += " CONTEXT: " + n;
    }
    // NOTE: We don't use FirestoreError here because these are internal failures
    // that cannot be handled by the user. (Also it would create a circular
    // dependency between the error and assert modules which doesn't work.)
    throw __PRIVATE_logError(r), new Error(r);
}
function __PRIVATE_hardAssert(e, t, n, r) {
    let i = "Unexpected state";
    "string" == typeof n ? i = n : r = n, e || __PRIVATE__fail(t, i, r);

When I retrace what the user did in the application using the crumbs I put, I don't see anything special, and lots previous requests behave (fortunately!) as expected, but I have many errors like this one. At this point, I don't know if it's a silent error and the SDK retries and the user does not see it, or if he's blocked in his actions (which is really anoying for a paying customer...).

Do anyone have any clue on what's the cause and how to solve it? I saw other b815 errors reported, but the following problem was never the same as the one I have.

Thanks! 🙏

Steps and code to reproduce issue

Unfortunately I cannot reproduce the problem, as it (fortunately!) happens only sometimes on some users. I did not find any pattern.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions