Comments (2)
An update on the error:
2023-05-07T20:35:00.767Z - cli - 901491 - server.connected - connected to server - {"secure":false} - [172.31.34.175]
2023-05-07T20:35:00.767Z - cli - 901491 - pdu.command.out - bind_transceiver - {"command":"bind_transceiver","command_length":0,"command_id":9,"command_status":0,"sequence_number":1,"system_id":"****","password":"****","system_type":"","interface_version":80,"addr_ton":0,"addr_npi":0,"address_range":""} - [172.31.34.175]
2023-05-07T20:35:00.768Z - cli - 901491 - socket.data.out - - {"bytes":37} - [172.31.34.175]
2023-05-07T20:35:00.770Z - cli - 901491 - socket.data.in - - {"bytes":309} - [172.31.34.175]
2023-05-07T20:35:00.771Z - cli - 901491 - pdu.command.error - PDU length was too large (1213486160, maximum is 16384). - {} - [172.31.34.175]
SMPP session error: Error: PDU length was too large (1213486160, maximum is 16384).
at PDU.commandLength (/usr/src/app/node_modules/smpp/lib/pdu.js:50:9)
at Session._extractPDUs (/usr/src/app/node_modules/smpp/lib/smpp.js:188:32)
DB connected...
2023-05-07T20:35:10.770Z - cli - 901491 - pdu.command.out - enquire_link - {"command":"enquire_link","command_length":0,"command_id":21,"command_status":0,"sequence_number":2} - [172.31.34.175]
2023-05-07T20:35:10.770Z - cli - 901491 - socket.data.out - - {"bytes":16} - [172.31.34.175]
2023-05-07T20:35:20.778Z - cli - 901491 - pdu.command.out - enquire_link - {"command":"enquire_link","command_length":0,"command_id":21,"command_status":0,"sequence_number":3} - [172.31.34.175]
2023-05-07T20:35:20.779Z - cli - 901491 - socket.data.error - - {"error":"Cannot write command enquire_link to socket","errorType":"socket_write_error"} - [172.31.34.175]
2023-05-07T20:35:20.780Z - cli - 901491 - socket.error - write EPIPE - {"errno":-32,"code":"EPIPE","syscall":"write"} - [172.31.34.175]
SMPP session error: Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
2023-05-07T20:35:20.783Z - cli - 901491 - server.disconnected - disconnected from server - - [172.31.34.175]
SMPP session closed
from node-smpp.
Hello @ijoe7
To solve this error : 2023-05-07T19:21:15.815Z - cli - 878563 - pdu.command.error - PDU length was too large (1213486160, maximum is 16384). - {} - [172.31.34.175]
Update PDU maximum length global variable in your main application file like that :
const smpp = require('smpp');
smpp.PDU.maxLength = 1213486165
from node-smpp.
Related Issues (20)
- Getting invalid password response from SMPP Server HOT 1
- Node client crash with ECONNRESET HOT 5
- Couldn't recieve SMS from SMSC HOT 7
- Differntiate between incoming message and an incoming message that gets triggered after a message is sent using smpp HOT 2
- Error while connecting to server PDU_STATUS 15 HOT 3
- connection issue when setting up the smpp server. HOT 6
- Getting esm_class === 4 for every sent SMS HOT 2
- [Support] total received DLR and Submit response vs total sent SMS
- message_payload or UDH header HOT 1
- Client Not reciving DLR Report
- Only one message recieved when multiple messages are sent. HOT 5
- couldn't perform submit_sm although there is a binding
- Rebind on reconnecting to smsc is not working
- Support for Session Pooling.
- How to handle bind_transrecivier command status 5 HOT 5
- Session Randomly dropped by the server | ECONNRESET HOT 12
- Client receiving empty message due to encoding conflict. HOT 2
- [IGNORE]
- Multiprocessing HOT 2
- Why this library is too much sensitive ?
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 node-smpp.