【问题标题】:Amazon SNS not sending sms after account creationAmazon SNS 在创建账户后不发送短信
【发布时间】:2021-02-28 13:37:31
【问题描述】:

我尝试使用亚马逊 sns 发送短信,但我收到了

短信成功发布到电话号码+23481XXXXXXX。 消息“ID”:*********************

但是消息状态显示“失败”。

请在我开始发送短信之前验证我的帐户后,我还需要做什么吗?

【问题讨论】:

    标签: amazon-web-services sms amazon-sns


    【解决方案1】:

    您可能还想检查您使用的地区是否支持短信,以及您尝试发送的国家/地区是否支持。

    https://docs.aws.amazon.com/sns/latest/dg/sns-supported-regions-countries.html

    不确定这是否只是与 SNS 相关,或者您是否在 cognito 中创建帐户后尝试发送短信,可能还需要检查区域支持

    https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html

    【讨论】:

      【解决方案2】:

      您可以激活发送状态记录以获得更详细的 SMS 消息记录。

      来自Viewing Amazon CloudWatch metrics and logs for SMS deliveries - Amazon Simple Notification Service

      • 激活交付状态记录
      • 发送消息
      • 在 Amazon CloudWatch Logs 中查看结果

      这是一个示例日志条目:

      {
          "notification": {
              "messageId": "1077257a-92f3-5ca3-bc97-6a915b310625",
              "timestamp": "2016-06-28 00:40:34.559"
          },
          "delivery": {
              "mnc": 0,
              "destination": "+1XXX5550100",
              "priceInUSD": 0.00645,
              "smsType": "Transactional",
              "mcc": 0,
              "providerResponse": "Unknown error attempting to reach phone",
              "dwellTimeMs": 1420,
              "dwellTimeMsUntilDeviceAck": 1692
          },
          "status": "FAILURE"
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-04-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多