Closed emclab closed 5 years ago
There hasn't been a new API or Node library release. There was an incident on the 24th with SMS delivery to US & Canada, and that caused message delays and failures. You can read more about it on https://www.nexmostatus.com/.
Did the issue with the callback resolve itself in the meantime?
It was about the time when I was trying to send out SMS message. The code was working and there is no change on the code either. There was nothing returned (both err and result) and the callback did not know how to proceed. Maybe a snippet of code handling NULL return should be added to my callback.
I think that would be best. And maybe set up delivery receipts, so you can see what happens to the message if it got delivered.
https://developer.nexmo.com/messaging/sms/code-snippets/delivery-receipts/node
There is nexmo 2.4.1 and nodejs 10.15 in my backend server, sending SMS verification after a user signup. The nexmo SMS has been working fine for sometime but today no SMS verification was received and the nodejs server hung in callback. Here is the code:
If there is an error in sending, then
if (err)
will catch it. Here is the console output on Nodejs server:info: sending message from 1xxxxxx8344 to 1xxxxx6414 with message 15224 info: Request: { host: 'rest.nexmo.com', port: 443, path: '/sms/json?type=unicode&from=1xxxxxx8344&to=1xxxxxx6414&text=15224&api_key=mykey&api_secret=mysecret', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', Accept: 'application/json', 'User-Agent': 'nexmo-node/2.4.1 node/10.15.3' } } Body: undefined info: response ended: 200 vcode in nexmo : 15224 'nexmo result : ' next step after nexmo result
The callback hung and did not return even though the status of 200. what caused such behavior and how to fix?