Skip to content

Unable to send SMS with SNS via API/SDK

0

Hello,

I'm trying to use SNS to send Transactional SMS. Used the SDK AWS provides and everything seems OK however doesn't recieve the SMS and nothing appears in the logs. Checked all the possible issues and everything seems fine. No quota issues (requested and got increase), production enabled, no access issues, test SMS from SNS interface working fine, API response seems good (contains everything which should be in the response according to the documentations), etc.

The next step would be to contact AWS so they can check and resolve the issue. However for that i need to pay, which is a bit weird as im already paying for a service which isn't working ...

Any ideas how should i proceed?

Thanks,

asked 2 years ago230 views
1 Answer
1
Accepted Answer

Turned out that the developer didn't configured correctly the AWS region. In such cases would be nice if the API provides a proper answer and doesn't accepts the request.

answered 2 years ago
EXPERT
reviewed 2 years ago
  • This worked for me as well. There was no error and SMS sending was simply not going through. This works locally but fails in production for some reason (probably an env variable sets region locally). Changing to this worked:

    this.snsClient = new SNSClient({ region: 'us-west-2' })

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.