英文:
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:
{
"insertId": "-6nlbdid1yva",
"jsonPayload": {
"status": {
"code": 13,
"message": "Error code: 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"
}
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: '>=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
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论