Comments (4)
can you post the code you use to send the message? what version of the plivo-node library are you using?
from plivo-node.
Found the bug, it would appear it is an incompatibility issue with request
versions. And when request
is being specified as devDependencies
, it would not pull down a separate older version for plivo
.
Here's how to reproduce it:
package.json
{
"dependencies": {
"plivo": "^0.3.3"
},
"devDependencies": {
"request": "^2.72.0"
}
}
test.js
const plivo = require('plivo');
const config = {
PLIVO_AUTH_ID: 'XXXXXXXXXX',
PLIVO_AUTH_TOKEN: 'XXXXXXXXXX',
PLIVO_SRC_TEL: 'XXXXXXXXXX',
};
const api = plivo.RestAPI({
authId: config.PLIVO_AUTH_ID,
authToken: config.PLIVO_AUTH_TOKEN,
});
api.send_message({
src: config.PLIVO_SRC_TEL,
dst: 'XXXXXXXXXX',
text: 'test sms'
}, function (status, response) {
if (status >= 400) {
console.error(response);
} else {
console.log(response);
}
});
from plivo-node.
NPM bug: npm/npm#10277
from plivo-node.
This issue has been marked as stale because it has not had recent activity and is now closed. Please open the issue if the solution is not found yet.
from plivo-node.
Related Issues (20)
- 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 5
- validateSignature does not work HOT 1
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.