问题
I have been using Amazon SNS to send SMS for a while, since two days ago it stopped working. I didn't change anything on my side. Even if I try to send SMS from the console, still doesn't work.
I only have 35% delivery rate for last couple of days, but since yesterday it is not working at all.
回答1:
There are different ways to troubleshoot this problem. This is something addressed in the Developer Forum of AWS. Please go through the following steps to troubleshoot this problem. These could be basic steps, but I am pointing out the most general steps required.
- Try sending an SMS from the AWS Console. If this works, there is no issue with the spending limit or delivery rate. (So you have mentioned that this is not working too)
- Now check whether your Mobile number (which is receiving SMS) is subscribed to the topic. Under some conditions, the recipient can opt out from the topic.
Where required by local laws and regulations (such as the US and Canada), SMS recipients can opt out, which means that they choose to stop receiving SMS messages from your AWS account.
- Check the Account Spending Limit which you have set for your calendar month. This could be limiting your SMS delivery. If you haven't set this, the default is 1 USD per month.
For Account spend limit, type the maximum amount in USD that you want to spend on SMS messages each calendar month. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds your spend limit for that month, Amazon SNS stops publishing SMS messages within minutes.
- For much more obvious reasons, check whether your Mobile Number (Which is receiving SMSs), is not blocking any of your SMSs.
- If none of these work, do contact AWS support team, they will get back to you within 2 working days. They will definitely sort it out. Until now, all my support calls were successfully resolved by their team.
回答2:
- Check your dashboard for the topic - see if its reporting failed messages
- Check your phone number. If you're in US and don't EXACTLY do
+1
+areacode
+7-digits
- it will fail. (Notice the+1
prefix!!)
来源:https://stackoverflow.com/questions/54242154/aws-sns-is-not-sending-sms-anymore