【问题标题】:Firebase auth issue on flutter webFlutter Web 上的 Firebase 身份验证问题
【发布时间】:2021-07-08 13:10:25
【问题描述】:

所以,乍一看,问题很简单:

Flutter web 上的 createUserWithEmailAndPassword() 方法不适用于我的项目。

它只是在一段时间内给出这个错误:

xhrio.js:630 POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=//here is my key, obviosly not showing

net::ERR_CONNECTION_REFUSED

errors.dart:187 Uncaught (in promise) Error: [firebase_auth/network-request-failed] A network error (such as timeout, interrupted connection or unreachable host) has occurred.

at Object.throw_ [as throw] (errors.dart:236)

at firebase_auth_web.FirebaseAuthWeb.new.createUserWithEmailAndPassword (firebase_auth_web.dart:157)

at createUserWithEmailAndPassword.throw (<anonymous>)

at async_patch.dart:60

at _RootZone.runBinary (zone.dart:1617)

at _FutureListener.thenAwait.handleError (future_impl.dart:166)

at handleError (future_impl.dart:716)

at Function._propagateToListeners (future_impl.dart:737)

at _Future.new.[_completeError] (future_impl.dart:547)

at async._AsyncCallbackEntry.new.callback (future_impl.dart:603)

at Object._microtaskLoop (schedule_microtask.dart:40)

at _startMicrotaskLoop (schedule_microtask.dart:49)

at async_patch.dart:166

请注意 - 颤振医生完全是绿色的,一切都已连接,等等。相信我,我不是这方面的新手。一切都在 android 模拟器上完美运行。

我什么都试过了。在 reddit 上解决了它,在 github 中创建了问题 - 什么都没有。

有什么想法吗?

【问题讨论】:

    标签: firebase flutter firebase-authentication


    【解决方案1】:

    检查 Windows 主机文件是否有效(我出于我的目的对其进行了编辑)。

    【讨论】:

      猜你喜欢
      • 2020-11-27
      • 2021-12-09
      • 2021-04-21
      • 1970-01-01
      • 1970-01-01
      • 2020-01-23
      • 2021-03-22
      • 2021-06-27
      • 2021-01-17
      相关资源
      最近更新 更多