AWS SNS 验证短信不会发送到手机

发布于 2025-01-12 12:16:58 字数 779 浏览 2 评论 0原文

步骤:

1).创建了一个新的沙盒帐户并验证了手机号码。 (验证消息已发送)

2)。更改了认知设置 输入图片此处描述

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)

2). Changed cognito settings
enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

時窥 2025-01-19 12:16:58

如果启用传送状态日志记录,您应该会收到任何 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文