这很可能是瞬态情况,可以通过后退重试来纠正

2023-12-24

我在我的项目中使用 firebase,并且遇到了下面提到的一些问题 -

[cloud_firestore/unavailable] 该服务当前不可用。 这很可能是一种瞬态情况,可以通过后退重试来纠正。

我正在使用 firebase lib 版本:

 firebase_auth: ^0.18.0+1
 google_sign_in: ^4.5.3
 cloud_firestore: ^0.14.3
 firebase_core: ^0.5.2
 firebase_messaging: ^7.0.3
 firebase_storage: ^4.0.0

flutter run --verbose - 结果:

     [ +208 ms] executing: [/home/loser97/Desktop/application/flutter/flutter_linux/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +472 ms[        ] f30b7f4db93ee747cd727df747941a28ead25ff5log -n 1 --pretty=format:%H
[   +1 ms] executing: [/home/loser97/Desktop/application/flutter/flutter_linux/flutter/] git tag --points-at HEAD
[+1208 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.0-12.4.pre
           1.22.1
[  +14 ms] executing: [/home/loser97/Desktop/application/flutter/flutter_linux/flutter/] git rev-parse --abbrev-ref
--symbolic @{u}
[  +38 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/loser97/Desktop/application/flutter/flutter_linux/flutter/] git ls-remote --get-url
origin
[   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +83 ms] executing: [/home/loser97/Desktop/application/flutter/flutter_linux/flutter/] git rev-parse --abbrev-ref
HEAD
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +157 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +20 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +162 ms] executing: /home/loser97/Android/Sdk/platform-tools/adb devices -l
[  +52 ms] List of devices attached
[   +3 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +158 ms] No supported devices connected.
[  +14 ms] "flutter run" took 502ms.
[  +28 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:353:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:933:11)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:836:33)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart)
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
           #6      _rootRun (dart:async/zone.dart:1190:13)
           #7      _CustomZone.run (dart:async/zone.dart:1093:19)
           #8      _runZoned (dart:async/zone.dart:1630:10)
           #9      runZoned (dart:async/zone.dart:1550:10)
           #10     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
           #11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:825:20)
           #12     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
           #13     FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:335:21)
           #14     _rootRunUnary (dart:async/zone.dart:1198:47)
           #15     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #16     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #17     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #18     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #19     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #20     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
           #21     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
           #22     FlutterVersion.checkFlutterVersionFreshness (package:flutter_tools/src/version.dart)
           #23     _rootRunUnary (dart:async/zone.dart:1198:47)
           #24     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #25     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #26     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #27     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #28     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #29     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
           #30     _rootRun (dart:async/zone.dart:1190:13)
           #31     _CustomZone.run (dart:async/zone.dart:1093:19)
           #32     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #33     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
           #34     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #35     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #36     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #37     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
           
           
[ +258 ms] ensureAnalyticsSent: 252ms
[   +3 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

请分享你的答案。


这个答案可能已经很晚了,但是无论谁因这个错误访问这里,我都没什么可说的,

  1. 如果您正在使用您的功能,请确保它已连接到互联网以进行 Firebase 操作。

  2. 如果您的模块与具有离线支持的 firebase 配合使用,请确保您首先缓存了与您的模块相关的集合和所有文档。这样你就可以避免这个错误。如果包含离线模式,显然您可能已经启用了 firebase 中的持久性,如果没有,请检查这个链接 https://firebase.google.com/docs/firestore/manage-data/enable-offline.

  3. 如果离线工作及以上工作不起作用,请务必检查并验证 firebase 中是否存在集合/文档。

  4. 您还可以利用诸如 try...catch... 等替代方案并进行修复。

  5. 服务器端可能会出现故障,而我们对此无能为力。

在大多数情况下,我们端可能会出现一些代码问题,您可以通过检查其他 firebase 调用来验证它是否来自服务器端故障。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

这很可能是瞬态情况,可以通过后退重试来纠正 的相关文章

随机推荐

  • 使用 sklearn 计算两个不同列的单独 tfidf 分数

    我正在尝试计算一组查询和每个查询的一组结果之间的相似性 我想使用 tfidf 分数和余弦相似度来做到这一点 我遇到的问题是我无法弄清楚如何使用两列 在 pandas 数据框中 生成 tfidf 矩阵 我已经连接了两列 它工作得很好 但使用起
  • Flutter - VoidCallback 内容未执行

    我创建了以下客户小部件 class MainButtonWidget extends StatelessWidget String text TextTheme textTheme new TextTheme IconData icon n
  • SoapUI - 包含 xsd 的 wsdl 问题

    我有一个包含 xsd 的静态 wsdl xsd 和 wsdl 位于同一 XML 命名空间中 因此包含 xsd
  • 在 NHibernate 中急切加载一棵树

    我在尝试加载树时遇到问题 这是我的情况 我有一个与自身关联的实体 层次结构 具有 n 个级别 问题是 我可以使用 ICriteria 或 HQL 急切地加载整个树吗 预先感谢您的任何帮助 爱丽儿 是的 只需设置正确的获取模式即可 我将在一分
  • 如何在 YII Active Record 中使用 IN 和 Between 子句?

    我想在活动记录中编写以下查询 SELECT FROM User WHERE UserId IN 6 7 8 9 Thanks 您可以使用CDbCriteria陈述 criteria new CDbCriteria criteria gt a
  • 当用户手动滚动时突出显示锚链接? [复制]

    这个问题在这里已经有答案了 我为这么长的帖子道歉 我想包括所有可能有帮助的内容 我有一个单页网站 由多个垂直堆叠的 div 组成 我正在使用浮动导航栏软滚动 js http scripterlative com files softscro
  • Matlab:通过补丁的“X射线”情节线

    Problem 我试图可视化一个 3D 路径 以及它周围代表数据标准差的 云 我希望能够看到一条粗黑线作为路径 周围有均匀的灰色区域 线条没有任何浑浊 就像通过云看到 X 射线一样 Attempt I used plot3创建一条粗线并pa
  • 通过C#连接Oracle数据库?

    我需要通过 Visual Studio 2010 连接到 Oracle DB 外部 但我不想在我的计算机上安装 Oracle 在我的项目中我引用了 系统 数据 OracleClient 但它不能满足需要 我有一个 Oracle SQL 开发
  • php 中的自动加载是什么? [复制]

    这个问题在这里已经有答案了 PHP 中的自动加载是什么 这将对您有关 autoload 的使用有所帮助 http ditio net 2008 11 13 php autoload best practices http ditio net
  • 用Python编写分散/聚集套接字

    在 POSIX C 中我们可以使用writev一次将多个数组写入文件描述符 当您必须连接多个缓冲区以形成通过套接字发送的单个消息 例如 考虑 HTTP 标头和正文 时 这非常有用 这样我就不需要打电话了send两次 一次用于标头 一次用于正
  • MongoDB 文本索引搜索大表中常见单词的速度很慢

    我正在为一项服务托管一个 mongodb 数据库 该服务支持对包含 680 万条记录的集合进行全文搜索 其文本索引包括十个不同权重的字段 大多数搜索只需要不到一秒钟的时间 有些搜索需要两到三秒 然而 有些搜索需要 15 60 秒 15 60
  • MVC Html.ActionLink 未呈现。你能发现我做错了什么吗?

    我在部分视图的 IF 语句内有一个 Html ActionLink 它没有按预期为我呈现超链接 我在该行上放置了一个断点 并确认 IF 语句实际上已满足并且其中的代码正在运行 作为一项额外措施 我还尝试用硬字符串替换子字符串 有什么想法为什
  • 使用 Java 中的算法更改绘图的角度/位置

    你好 我很好奇如何解决这个问题 我用 Java 中的 fillArc drawArc 方法创建了一个 pacman 现在我的屏幕上有一个 pacman 家伙 无论它朝哪个方向走 它总是向右看 我的问题是 有没有办法在Java中改变对象的角度
  • 如何为嵌套类函数编写 Frida 钩子?

    安卓版本6 0 1 弗里达 v 12 2 19 我是弗里达的新手 不知道如何解决这个问题 我的目标函数位于路径 com gt appname gt folder gt xyz class 在 xyz class 中 该类的嵌套如下 publ
  • 如何获取两个日期之间的所有产品?

    如何获取两个日期之间的所有产品 例如上个月产品 本月产品 上周产品和本周产品等 我尝试过这个 current day to start with start mktime 0 0 0 date m date d date Y calcula
  • 使用父宏的右括号的 C 预处理器

    我有这个有效的代码 include
  • gRPC Python thread_pool 与 max_concurrent_rpcs

    当启动Python时grpc server 有什么区别maximum concurrent rpcs和max workers在线程池中使用 如果我愿意maximum concurrent rpcs 1 我还应该向线程池提供多个线程吗 换句话
  • 域名已与“现有”CloudFront 分配关联

    当我尝试通过设置域时无服务器域管理器 https github com amplify education serverless domain manager with sls create domain 失败并显示 BadRequestE
  • 进行输出重定向

    我想将 make 命令的输出和错误流重定向到文件 以下命令 make 1 gt 2 tmp build log 抛出以下错误 make Nothing to be done for Users m tmp build log EDIT Tr
  • 这很可能是瞬态情况,可以通过后退重试来纠正

    我在我的项目中使用 firebase 并且遇到了下面提到的一些问题 cloud firestore unavailable 该服务当前不可用 这很可能是一种瞬态情况 可以通过后退重试来纠正 我正在使用 firebase lib 版本 fir