AWS SNS 验证短信不会发送到手机
步骤:
1).创建了一个新的沙盒帐户并验证了手机号码。 (验证消息已发送)
3).以下代码用于获取验证消息(lambda)
await cognitoidentityserviceprovider.getUserAttributeVerificationCode({{
AccessToken: access,
AttributeName: 'phone_number',
}}).promise()
4)。使用 aws appsync 发送请求
5)。返回以下消息
{
"data": {
"requestMobilePasscode": "{CodeDeliveryDetails={Destination=+**********, DeliveryMedium=SMS, AttributeName=phone_number}}"
}
}
6)。并使用了 us-east-1
区域。
7).检查了亚马逊SNS ->短信 (SMS) ->发送统计(UTC),所有消息发送失败。
有谁对这个问题有任何想法 谢谢
Steps:
1). Created a new sandbox account and verified mobile number. (verification messages were delivered)
3). following code used for get a verification message (lambda)
await cognitoidentityserviceprovider.getUserAttributeVerificationCode({{
AccessToken: access,
AttributeName: 'phone_number',
}}).promise()
4). Used aws appsync for sending request
5). returned following message
{
"data": {
"requestMobilePasscode": "{CodeDeliveryDetails={Destination=+**********, DeliveryMedium=SMS, AttributeName=phone_number}}"
}
}
6). And used us-east-1
region.
7). checked amazon SNS -> Text messaging (SMS) -> Delivery statistics (UTC), All messages are sending failed.
Does anyone have any idea about this issue
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果启用传送状态日志记录,您应该会收到任何 SMS 传送失败的详细错误消息。详细说明可在此处找到:https ://docs.aws.amazon.com/sns/latest/dg/sms_stats_cloudwatch.html#sns-viewing-cloudwatch-logs。
You should get a detailed error message for any SMS delivery failures if you enable delivery status logging. Detailed instructions can be found here: https://docs.aws.amazon.com/sns/latest/dg/sms_stats_cloudwatch.html#sns-viewing-cloudwatch-logs.