“Auth Error code: 47 当通过电子邮件在Flutter Web和Web App中注册时”

huangapple go评论55阅读模式
英文:

Auth Error code: 47 when sign up via email in Flutter Web and Web App

问题

我正在将一个Flutter Web应用程序(以及一个不使用Flutter的Web应用程序)迁移到Identity Platform,遵循官方GitHub存储库中的示例。使用Google提供程序的注册工作正常,但通过电子邮件注册不起作用,会引发503 HTTP错误,并在日志资源管理器中记录一个没有有用信息的错误(至少对我来说没有)。我无法找到恢复电子邮件注册的方法。

尝试从头开始创建一个项目,但结果相同。

以下是Logs Explorer捕获的错误:

{
  "insertId": "-6nlbdid1yva",
  "jsonPayload": {
    "status": {
      "code": 13,
      "message": "错误代码: 47"
    },
    "methodName": "google.cloud.identitytoolkit.v1.AuthenticationService.SignUp",
    "@type": "type.googleapis.com/google.cloud.identitytoolkit.logging.RequestLog",
    "requestMetadata": {
      "callerIp": "XXX.XXX.XXX.XXX",
      "callerSuppliedUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36,gzip(gfe),gzip(gfe)"
    },
    "request": {
      "@type": "type.googleapis.com/google.cloud.identitytoolkit.v1.SignUpRequest",
      "email": "XXXXXXXX@XXXXX.com"
    }
  },
  "resource": {
    "type": "identitytoolkit_project",
    "labels": {
      "project_id": "my-project-id"
    }
  },
  "timestamp": "2023-05-06T17:34:25.415Z",
  "severity": "ERROR",
  "logName": "projects/my-project-id/logs/identitytoolkit.googleapis.com%2Frequests",
  "receiveTimestamp": "2023-05-06T17:34:26.070942970Z"
}

版本:


Flutter 3.7.12 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4d9e56e694(3周前) • 2023-04-17 21:47:46 -0400
Engine • revision 1a65d409c7
Tools • Dart 2.19.6 • DevTools 2.20.1


environment:
  sdk: '>=2.19.6 <3.0.0'
  flutter: ">3.0.0"


dependencies:
  flutter:
    sdk: flutter

# Firebase dependencies
  firebase_core: ^2.11.0
  firebase_auth: ^4.5.0
  cloud_firestore: ^4.6.0
  firebase_storage: ^11.1.2
  firebase_messaging: ^14.5.0

# Auth
  flutter_signin_button: ^2.0.0
  google_sign_in: ^6.1.0
英文:

I'm migrating a Flutter Web app (and also a Web App without Flutter) to Identity Platform following the example in the official GitHub repo.

The SignUp using the google provider is working fine, but registration via email is not working throwing an 503 http error and logging an error with no useful information (at least to me) in the Logs Explorer. I'm not able to find the way to restore the email SignUp.

Tried starting a project from scratch with the same result.

Next is the error captured by the Logs Explorer:

{
  &quot;insertId&quot;: &quot;-6nlbdid1yva&quot;,
  &quot;jsonPayload&quot;: {
    &quot;status&quot;: {
      &quot;code&quot;: 13,
      &quot;message&quot;: &quot;Error code: 47&quot;
    },
    &quot;methodName&quot;: &quot;google.cloud.identitytoolkit.v1.AuthenticationService.SignUp&quot;,
    &quot;@type&quot;: &quot;type.googleapis.com/google.cloud.identitytoolkit.logging.RequestLog&quot;,
    &quot;requestMetadata&quot;: {
      &quot;callerIp&quot;: &quot;XXX.XXX.XXX.XXX&quot;,
      &quot;callerSuppliedUserAgent&quot;: &quot;Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36,gzip(gfe),gzip(gfe)&quot;
    },
    &quot;request&quot;: {
      &quot;@type&quot;: &quot;type.googleapis.com/google.cloud.identitytoolkit.v1.SignUpRequest&quot;,
      &quot;email&quot;: &quot;XXXXXXXX@XXXXX.com&quot;
    }
  },
  &quot;resource&quot;: {
    &quot;type&quot;: &quot;identitytoolkit_project&quot;,
    &quot;labels&quot;: {
      &quot;project_id&quot;: &quot;my-project-id&quot;
    }
  },
  &quot;timestamp&quot;: &quot;2023-05-06T17:34:25.415Z&quot;,
  &quot;severity&quot;: &quot;ERROR&quot;,
  &quot;logName&quot;: &quot;projects/my-project-id/logs/identitytoolkit.googleapis.com%2Frequests&quot;,
  &quot;receiveTimestamp&quot;: &quot;2023-05-06T17:34:26.070942970Z&quot;
}

Version:


Flutter 3.7.12 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4d9e56e694 (3 weeks ago) • 2023-04-17 21:47:46 -0400
Engine • revision 1a65d409c7
Tools • Dart 2.19.6 • DevTools 2.20.1


environment:
  sdk: &#39;&gt;=2.19.6 &lt;3.0.0&#39;
  flutter: &quot;&gt;=3.0.0&quot;


dependencies:
  flutter:
    sdk: flutter

#  Firebase dependencies
  firebase_core: ^2.11.0
  firebase_auth: ^4.5.0
  cloud_firestore: ^4.6.0
  firebase_storage: ^11.1.2
  firebase_messaging: ^14.5.0

#  Auth
  flutter_signin_button: ^2.0.0
  google_sign_in: ^6.1.0

答案1

得分: 2

After a lot of hours looking for the problem, I found on what is related.

There is a function that runs when the signup is triggered and it is failing when the auth provider is the email/password.

BTW, the log and error message that the platform trigger is completely useless.

英文:

After a lot of hours looking for the problem, I found on what is related.

There is a function that runs when the signup is triggered and it is failing when the auth provider is the emaol/password

BTW, the log and error message that the platform trigger is completely useless.

huangapple
  • 本文由 发表于 2023年5月7日 01:47:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76190306.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定