Git Product home page Git Product logo

Comments (2)

ijoe7 avatar ijoe7 commented on June 23, 2024

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.

franckck avatar franckck commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.