Comments (4)
@beneloper can you tell us which api's response causes this issue?
from plivo-node.
send_message()
var p = plivo.RestAPI(configs.plivo),
plivoParams = {
'src': configs.PLIVO_SMS_SRC, // Caller Id
'dst' : phoneNumber, // User Number to Call
'text': msg,
'type': "sms"
};
p.send_message(plivoParams, function (status, response) {
log.info('API status: %d, Response: %j', status, response);
callback(null, response);
});
from plivo-node.
@beneloper I tried this out and some more variants (like bulk sms, invalid params, etc). Worked fine to me. If you continue facing issues, please create a support ticket on your account dashboard providing request params, api_id, message_uuid.
from plivo-node.
We've used this for 5 months and it crashed few times so it's not easy to reproduce just to try few times. Anyway, I saw someone already fixed the issue in the latest version (lines 77-79 added). It's a good practice not to assume that the values returned are always non-null values, especially the module used (request) is from third party.
76 Request.post(request_options, function (error, response, body) {
77 if (error || !response) {
78 return callback(500, body)
79 }
80 if (response.statusCode != 201) {
81 err = new PlivoError(error);
82 }
83 callback(response.statusCode, body);
84 });
from plivo-node.
Related Issues (20)
- SMS Error codes documentation HOT 2
- Zap test
- Timeout on mass text message call HOT 7
- Uncaught exception: TypeError: Cannot read properties of undefined (reading 'status') HOT 2
- Version 4.8.0 or Version 4.26.1 HOT 1
- how to get status of an outgoing call? HOT 1
- PHLO UUID not found HOT 3
- Typing change is incorrect for calls.create response HOT 1
- Need a help on forwarding calls: HOT 3
- Console.log on listing all endpoints HOT 1
- xml Response type information HOT 1
- Security alert on [email protected], need ^9.0.0 HOT 1
- 2 moderate severity vulnerabilities HOT 1
- Unable to send MMS without text provided HOT 2
- No brands + campaigns types HOT 1
- client.calls.startStream is not a function
- Unable to build TypeScript on Version 4.56.0
- Update axios to close 2 moderate vulnerabilities HOT 1
- Client Options is typed as string instead of an object HOT 1
- Issue with tagging Application Id in Verify API HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plivo-node.