gpt4 book ai didi

Firestore Stream closed with status UNAVAILABLE description Channel shutdownNow invoked(Firestore Stream已关闭,状态为UNAVAILABLE描述Channel shutdownNow invoked)

转载 作者:bug小助手 更新时间:2023-10-28 21:07:16 33 4
gpt4 key购买 nike



I am developing a flutter app. Before this error, reading and writing to the firestore database has no issues but then suddenly I am having error (shown below) and prevents me from reading or writing to the database. I have sought for answers but unfortunately I did not find any that will solve my problem.

我正在开发一款扑翼应用程序。在出现此错误之前,读取和写入FireStore数据库没有任何问题,但随后突然出现错误(如下所示),并阻止我读取或写入数据库。我一直在寻找答案,但不幸的是,我找不到任何可以解决我问题的答案。


Debug Console Output:

调试控制台输出:


W/Firestore(27297): (24.1.2) [WriteStream]: (bbd84bb) Stream closed with status: Status{code=UNAVAILABLE, description=Channel shutdownNow invoked, cause=null}.
W/DynamiteModule(27297): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
I/DynamiteModule(27297): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
W/ProviderInstaller(27297): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.

更多回答

I'm getting the exact same problem. Also same problem as here: stackoverflow.com/questions/73345658/… This is a MAJOR BUG yet no one wants to fix it. I've resorted to using a physical android device for all development of flutter.

我也遇到了同样的问题。也存在与此处相同的问题:Stackoverflow.com/Questions/73345658/…这是一个重大的错误,但没有人想要修复它。我已经求助于使用物理的Android设备来开发Ffltter。

Same here, no flutter. Kotlin app. Anybody found a solution ?

这里也一样,没有颤动。Kotlin应用程序。有人找到解决方案了吗?

优秀答案推荐

I guess it's DNS problem. using 1.1.1.1 warp VPN solves the problem.

我想这是域名系统的问题。使用1.1.1.1 WARP VPN解决了这个问题。



I was experiencing the same issue. In my case, i also had cloud functions listening to a particular collection on firestore db. I was using wrong path which caused my channel to shutdown.

我也遇到了同样的问题。在我的例子中,我还使用了云函数来监听Firestore数据库上的特定集合。我使用了错误的路径,导致我的频道关闭。


Valid path for listening to all documents in a collection via cloud functions

通过云函数监听集合中所有文档的有效路径


functions.firestore.document(`collectionId/{docId}`)

But i have used like,

但我曾经用过,


functions.firestore.document(`collectionId/\${docId}`)

have added '$' before '{docId}' which caused my firestore channel to shutdown.

我在“{docId}”之前添加了“$”,这导致我的firestore频道关闭。



run flutter clean in terminal to remove build artifacts and then rebuild your project using flutter build or flutter run .
this will work for me

在端子中运行颤动清理以删除生成瑕疵,然后使用颤动生成或颤动运行重新生成项目。这对我很管用



try to use strong network connection sometimes cause of this error is weak wifi connection

尝试使用强网络连接有时此错误的原因是WiFi连接弱


更多回答

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com