firebase管理员:验证电话号码时“;发生内部错误。原始服务器响应“;
我正在使用firebase admin创建新用户。此用户没有电话号码。 当我像这样填写电话号码“777” 我的firebase管理员响应有正确错误:firebase管理员:验证电话号码时“;发生内部错误。原始服务器响应“;,firebase,firebase-authentication,Firebase,Firebase Authentication,我正在使用firebase admin创建新用户。此用户没有电话号码。 当我像这样填写电话号码“777” 我的firebase管理员响应有正确错误: { Error: The phone number must be a non-empty E.164 standard compliant identifier string. at FirebaseAuthError.FirebaseError [as constructor] ... ... errorInfo: { code:
{
Error: The phone number must be a non-empty E.164 standard compliant identifier string.
at FirebaseAuthError.FirebaseError [as constructor]
...
...
errorInfo:
{ code: 'auth/invalid-phone-number',
message: 'The phone number must be a non-empty E.164 standard
compliant identifier string.'
},
codePrefix: 'auth' }
但如果我这样填数字“+777”
我的firebase管理员响应包括:
{ Error: An internal error has occurred. Raw server response:
"{"error":{"code":400,"message":"INVALID_PHONE_NUMBER : TOO_SHORT","errors":
[{"message":"INVALID_PHONE_NUMBER : TOO_SHORT","domain":"global","reason":"invalid"}]}}"
at FirebaseAuthError.FirebaseError [as constructor] ...
errorInfo:
{ code: 'auth/internal-error',
message: 'An internal error has occurred. Raw server response:
"{"error":{"code":400,"message":"INVALID_PHONE_NUMBER :
TOO_SHORT","errors":
[{"message":"INVALID_PHONE_NUMBER :
TOO_SHORT","domain":"global","reason":"invalid"}]}}"'
},
codePrefix: 'auth' }
为什么我有这个内部错误?如何避免呢
更新:
我理解缺乏国家代码。问题是。为什么是内部错误?而不是“普通”错误?这两个错误之间的区别是什么。当您将moile no传递给firebase时,您需要在手机号码之前预先输入您的国家代码 例: 如果您的国家是美国(国家代码:+1),并且您的电话号码是222-333-4444,则您需要发送+12223334444 您还可以使用US测试编号来测试firebase mobile auth 下面是我们的测试号码和短信代码 电话号码:“+1650554567” smsCode:“123456”
请阅读上的完整详细信息,当您将moile no传递给firebase时,您需要在手机号码之前预先输入您的国家代码 例: 如果您的国家是美国(国家代码:+1),并且您的电话号码是222-333-4444,则您需要发送+12223334444 您还可以使用US测试编号来测试firebase mobile auth 下面是我们的测试号码和短信代码 电话号码:“+1650554567” smsCode:“123456”
请阅读的完整详细信息,我在firebase系统中遇到了一些奇怪的错误。在我的例子中,我使用Google Sheets作为我们的数据存储。有人从另一个位置复制并粘贴了电话号码到谷歌表单中。在Firebase上完全失败 电话号码看起来正常,但我们认为可能有一些奇怪的字符编码。当我们删除电话号码条目并手动输入号码时,一切正常 我们的具体错误:
UnhandledPromiseRejectionWarning: Error: An internal error has occurred. Raw server response: "{"error":{"code":400,"message":"INVALID_PHONE_NUMBER : Invalid format.","errors":[{
"message":"INVALID_PHONE_NUMBER : Invalid format.","domain":"global","reason":"invalid"}]}}"
我在firebase系统中遇到了一些奇怪的错误。在我的例子中,我使用Google Sheets作为我们的数据存储。有人从另一个位置复制并粘贴了电话号码到谷歌表单中。在Firebase上完全失败 电话号码看起来正常,但我们认为可能有一些奇怪的字符编码。当我们删除电话号码条目并手动输入号码时,一切正常 我们的具体错误:
UnhandledPromiseRejectionWarning: Error: An internal error has occurred. Raw server response: "{"error":{"code":400,"message":"INVALID_PHONE_NUMBER : Invalid format.","errors":[{
"message":"INVALID_PHONE_NUMBER : Invalid format.","domain":"global","reason":"invalid"}]}}"
我了解国家代码。问题是。为什么是内部错误?而不是“普通”错误?这两个错误之间的区别是什么。我能够发送格式化的电话号码而没有任何问题
phoneNumber:“+1 307 307-3007”
我了解国家代码。问题是。为什么是内部错误?而不是“普通”错误?这两个错误之间的区别是什么。我能够发送格式化的电话号码而没有任何问题phoneNumber:“+1 307 307-3007”