Skip to content

@firebase/firestore: Firestore (9.16.0): Connection WebChannel transport errored #6993

@Malik-Usman17

Description

@Malik-Usman17

I am integrating the firebase with my react-native app, when I am adding the document, it give me this warning and didn't add the document.
@firebase/firestore: Firestore (9.16.0): Connection WebChannel transport errored: {"defaultPrevented": false, "g": {"A": true, "J": null, "R": [Circular], "g": {"$": true, "$a": 5000, "A": 3, "B": null, "C": 0, "Ca": "1hJW6YGvkRCHMzXfdmutYXfxVzcgGjoWTwnPDvMNTgI", "D": "gsessionid", "Ea": -1, "F": [U], "Fa": 12, "G": 0, "Ga": false, "H": true, "Ia": [ud], "J": "B8CDx_gBqjeTEQ67byhG9A", "K": 45000, "L": false, "M": true, "O": true, "P": false, "R": 0, "U": [Object], "V": 0, "W": 53269, "Y": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel", "aa": 4, "ab": false, "ba": false, "bb": false, "cb": 2, "eb": 1, "fb": 10000, "g": null, "h": [pd], "i": [Array], "j": [Sb], "l": [Z], "la": [Object], "m": null, "ma": undefined, "na": "", "o": null, "oa": null, "pa": 8, "s": null, "sa": -1, "u": null, "ua": undefined, "v": null, "va": [U], "wa": 600000}, "h": {"database": "projects/fir-auth-7be2f/databases/(default)"}, "i": {"g": [Object], "h": 4, "src": [Circular]}, "j": {"g": [Circular]}, "l": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel", "o": undefined, "s": false, "v": true}, "status": 1, "target": {"A": true, "J": null, "R": [Circular], "g": {"$": true, "$a": 5000, "A": 3, "B": null, "C": 0, "Ca": "1hJW6YGvkRCHMzXfdmutYXfxVzcgGjoWTwnPDvMNTgI", "D": "gsessionid", "Ea": -1, "F": [U], "Fa": 12, "G": 0, "Ga": false, "H": true, "Ia": [ud], "J": "B8CDx_gBqjeTEQ67byhG9A", "K": 45000, "L": false, "M": true, "O": true, "P": false, "R": 0, "U": [Object], "V": 0, "W": 53269, "Y": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel", "aa": 4, "ab": false, "ba": false, "bb": false, "cb": 2, "eb": 1, "fb": 10000, "g": null, "h": [pd], "i": [Array], "j": [Sb], "l": [Z], "la": [Object], "m": null, "ma": undefined, "na": "", "o": null, "oa": null, "pa": 8, "s": null, "sa": -1, "u": null, "ua": undefined, "v": null, "va": [U], "wa": 600000}, "h": {"database": "projects/fir-auth-7be2f/databases/(default)"}, "i": {"g": [Object], "h": 4, "src": [Circular]}, "j": {"g": [Circular]}, "l": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel", "o": undefined, "s": false, "v": true}, "type": "c"}

Here is my config.js file code:

`import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getAuth } from "firebase/auth";

const firebaseConfig = {
apiKey: "my_project_api_key",
authDomain: "fir-auth-7be2f.firebaseapp.com",
projectId: "fir-auth-7be2f",
storageBucket: "fir-auth-7be2f.appspot.com",
messagingSenderId: "180812418171",
appId: "1:180812418171:web:88c2ff1f9e363ede8066de"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const auth = getAuth(app)
const db = getFirestore(app);

export { db, auth };
`

My Project Versions are:
firebase: "^9.16.0"
react: "18.2.0",
react-native: "0.71.0"

One thing to note that I am running my app on real device (not emulator) while coding and using cli.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions