从AWS SNS获得成功响应但未发送SMS [英] Getting success response from AWS SNS but SMS not delivered
问题描述
我正在编写一个简单的程序,以使用Javascript客户端使用SNS服务发送SMS.
I am writing a simple program to send SMS using SNS service using the Javascript client.
var AWS = require('aws-sdk');
var sns = new AWS.SNS({
region : 'ap-southeast-1',
accessKeyId: '',
secretAccessKey: ''
});
sns.publish({
Message : "Test message",
PhoneNumber : "Test number"
}, function (err, data) {
if(err) {
console.log("Error - " + err);
}
else {
console.log('Success - ');
console.log(data);
}
});
我成功了,数据看起来像
I get a success and the data looks like
{ ResponseMetadata: { RequestId: '3b4e8c82-976c-55da-b1fa-dcd9ddc7254d' },
MessageId: '47a38cbe-2047-5056-a615-dce56aecc0c1' }
但是,SMS无法发送.
However, the SMS does not get delivered.
可能是什么问题?
推荐答案
对于新请求,邮件在24日后开始发送.指标仪表板显示的数据过时.在仪表板上它正确地表明,尽管API做出了积极回应,但所有SMS交付都在9月21日失败了.这使我重新考虑将SNS用于SMS的决定.
The messages started getting delivered after 24th for fresh requests. The metrics dashboard is showing the data a day stale. On the dashboard It correctly showed that all the SMS deliveries had failed on 21st September, inspite of a positive response from API. This is making me reconsider my decision of using SNS for SMS.
感谢所有提供帮助的人.
Thanks all who helped.
这篇关于从AWS SNS获得成功响应但未发送SMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!