farhadi / node-smpp

SMPP client and server implementation in node.js
MIT License
417 stars 177 forks source link

Trying to debug message undefined error #256

Open phil-warner opened 2 months ago

phil-warner commented 2 months ago

We've had a handful of uncaught exceptions in our application. The error stack is shown below. It's quite hard to pin it down using the node uncaughtException handler, as we only have access to the error and not the parameters of the request. Does this suggest anything to you guys?

TypeError: Cannot read properties of undefined (reading 'message')
at PDU.encode (.../node_modules/smpp/lib/defs.js:371:58)
at PDU._filter (.../node_modules/smpp/lib/pdu.js:141:40)
at PDU.toBuffer (.../node_modules/smpp/lib/pdu.js:160:7)
at Session.send (.../node_modules/smpp/lib/smpp.js:97:24)
at Session.submit_sm (.../node_modules/smpp/lib/smpp.js:130:15)