-
Notifications
You must be signed in to change notification settings - Fork 975
Open
Description
Operating System
windows 11
Environment (if applicable)
chrome, vue.js
Firebase SDK Version
12.0.0
Firebase SDK Product(s)
Firestore
Project Tooling
I get the following warning when trying to use onSnapshot
@firebase/firestore: Firestore (12.0.0): WebChannelConnection RPC 'Listen' stream 0x3719a3e5 transport errored. Name: undefined Message: undefined
Detailed Problem Description
My code
--firebase.js
export const firebaseApp = initializeApp({
apiKey: import.meta.env.VITE_FIREBASE_APP_KEY,
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
databaseURL: import.meta.env.VITE_FIREBASE_DATABASE_URL,
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
storageBucket: 'diddeed-application.firebasestorage.app',
messagingSenderId: '210158493016',
appId: import.meta.env.VITE_FIREBASE_APP_ID,
})
const db = getFirestore(firebaseApp, '**-default-**db')
--app.vue
const unsubscribe = onSnapshot(q, querySnapshot => {
for (const doc of querySnapshot) {
console.log('doc')
console.log(doc)
}
})
In the network tap, I found this failed request

Steps and code to reproduce issue
.