-
Notifications
You must be signed in to change notification settings - Fork 924
WebChannelConnection RPC 'Listen' stream 0x17d185b2 transport errored #8889
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @moblizeit, thank you for reporting this issue. Some quick questions:
|
I wonder if this could be related to capacitor configuration. A similar issue here : #8255 |
I've been facing a similar issue specifically when testing our app for iPad Air (5th generation) on iOS 18.4 which has caused our app to not pass Apple's review stage. Initially I thought it was the Firestore configuration, it's odd for me because if I freshly install the app on the simulator device it works fine, yet say I close the app after a fresh install, or just use it normally then this error arises and causes Firestore to not connect. For context the following does not work for me, which makes me think its deeper than my Vue 3, Ionic, Capacitor setup:
|
I'm facing the same issue. Nuxt3 + firebase 11.6.0 (Web) We followed everything from the docs: https://firebase.google.com/docs/firestore/quickstart |
Hi @moblizeit @khaelou @mark-redlayers , could you please set the log level to "debug" and share the logs? which sdk and mobile device versions are you using? It would be much appreciated if anyone can provide a minimal reproduction app. |
For me it was iPad Air (5th generation) iOS 18.3.2+ when testing on Xcode Simulator, it's preventing our app from passing Apple review process and we literally tried everything. I'm using "firebase" 11.6, I will be able to provide detailed logs when near workstation. I even tried to use VueFire with no luck, more specifically calls to firestore. |
In further detail with "firebase": "^11.6.0", The internet connection of the Xcode simulator device is indeed connected to Wifi, also it only works on a fresh app install to the target device. If I were to say close the app after the fresh install and re-open this error will arrise on iPad Air (5th generation) on iOS 18.3.2+
|
Again, using Nuxt3 with latest firebase version 11.6.0 [web JavaScript] setLogLevel("debug")
I'm not able at the moment to create a repo for this, have other things to do. will try to share as much as i can. /google.firestore.v1.Firestore/Listen/channel?gsessionid=Ld4K6F0NE85h8ViI9FucgGCiG37xHFrwU3zgfm8C--M&VER=8&database=projects%2Feyecandyvids-5fca1%2Fdatabases%2F(default)&RID=rpc&SID=tBWQhvwKo8FtrwUu5NcJyA&AID=0&CI=0&TYPE=xmlhttp&zx=rhba2x7tbb4l&t=1 I did debug and i saw that onSnapshot wasn't firing at all. Note:On our previous version project: Nuxt2 and firebase 9.8.2, this was working fine AND still works fine. And now even if I downgrade from firebase 11.6.0 to firebase 9.8.2, the bug remains the same. [with nuxt3].Let me know if u need more info. Or if there is anything that i've missed. Thanks in advance |
With the given logs and info, it is hard to debug what leads to the WebChannelConnection issue. There is a new update, which adds assertion ID to error messages instead of minifying them completely, expected to be released soon. Hopefully, it could provide us more info into the error logs. I will update the thread once it is released, and please try the new SDK version to see if |
@mark-redlayers, could you please elaborate on "I did debug and i saw that onSnapshot wasn't firing at all."? if you downgrade to Nuxt2, would it work fine? |
@khaelou not sure if iOS 18.3.2+ has similar issues, but iOS 18.4 RC Simulator is having connection issues. Could you please check if other simulators on Xcode also has the same problem? Other than that, if fresh install is working, but re-opening is problematic, maybe this could be related to persistence. Could you please try clean the cache before closing the app and see if the issue persist? |
@milaGGL The connection issue for me only persists with iOS above 18.3.1 which is why I stated iOS 18.3.2+. I've even tried no persistence with zero luck. I even tried downgrading and rebuilding the app many times over yet left defeated by this issue. This is causing Apple to reject app review process, it occurs when testing on iPad Air (5th generation) Simulator device, it connects to Firestore on a fresh install of our app only (re-opens / close to re-open would arise issue). |
@milaGGL I created a barebones reproduction repo, this can be tested on Xcode Simulator and includes steps to test why Firestore won't connect on iOS 18.3.2 and beyond. |
@khaelou I see, so iOS versions below 18.3.2 don't have this issue. Thanks for the repro app, I will try reproducing the error. |
@milaGGL Yes exactly, yet I believe it's some restriction now placed on URLSession as a modification to such lines in @ionic-team/capacitor allow Firestore and Authentication to pass yet I still haven't gotten images to load through. |
@milaGGL Hey sorry for late reply! each failed request gives the same warning like above. I can't downgrade to Nuxt2, but i have another branch which already uses Nuxt2 and firebase 9.8.2 as mentioned before and works very well. Same implementation was done, but using Nuxt3 and latest firebase version. |
It turned out the issue was caused by an incorrect projectId. While debugging the WebChannel request, I noticed that the projectId was set to undefined, which pointed me in the right direction: |
@mark-redlayers ,The new firebase version will be released end of April, in which hopefully we should be able to get more error info. If you are willing to, you can try doing custom build on the firestore now, and use that in your app to try out the feature early. |
I was facing the same issue (Chrome Extension), but the reason was using the wrong db. Instead of |
Hey @ouksal i tried that, and seems to work. |
@ouksal, thank you so much for sharing this. @ouksal, @mark-redlayers, are you using the default database or a custom (named) one? |
Thanks a lot, this is why and how to fix it. |
Specifying/changing the named DB does not fix the issue for me (only ever have been using the default/unspecified name), so I'm still seeing the same errors due to the iOS 18.4 RC Simulator bug mentioned previously |
@seanblonien I was literally facing this issue preventing our App Review process yet a temporary fix for me was to adjust from using URLSession.shared in @capacitor/ios and @capacitor/android. I then also needed to use CapacitorHttp plugin, it's a fairly hacked solution yet the only way I was able to get it working in XC Simulator considering iOS 18.3.2 and beyond. You may need to find a workaround if not using Capacitor. My guess is after the iOS 18.3.2 update some things broke behind the scenes for libraries that have gone untested. It seems to be a Simulator bug in XC 16.3 as mentioned here 🫡 |
Operating System
MacOS 14.6.1
Environment (if applicable)
ionic
Firebase SDK Version
11.4.0
Firebase SDK Product(s)
Firestore
Project Tooling
ionic angular
Detailed Problem Description
running app on android fails to connect to firestore. on ios the same code works just fine. below is the log and package.json
Based on suggestions here is my code looks like:
My package.json looks like below:
Steps and code to reproduce issue
just trying to build the app.
The text was updated successfully, but these errors were encountered: