Open parsibox opened 1 year ago
@parsibox as the log implies you are using an instance of Array as a parameter instead of Buffer or Uint8Array. Is the snippet you sent at 37:11 on your source code?
it is a real packet i do not create it myself
@parsibox did you found out the solution ?
@parsibox did you found out the solution ?
no
hi i get error on sending this pdu
node:buffer:559 throw new ERR_INVALID_ARG_TYPE( ^
TypeError [ERR_INVALID_ARG_TYPE]: The "list[0]" argument must be an instance of Buffer or Uint8Array. Received an instance of Array at new NodeError (node:internal/errors:371:5) at Object.concat (node:buffer:559:13) at PDU.encode (D:\wamp64\www\product\SmppClient\node_modules\smpp\lib\defs.js:545:17) at PDU._filter (D:\wamp64\www\product\SmppClient\node_modules\smpp\lib\pdu.js:144:41) at PDU.toBuffer (D:\wamp64\www\product\SmppClient\node_modules\smpp\lib\pdu.js:177:7) at Session.send (D:\wamp64\www\product\SmppClient\node_modules\smpp\lib\smpp.js:247:19) at Session. (D:\wamp64\www\product\SmppClient\project-test\fake_server.js:37:11)
at Session.emit (node:events:390:28)
at Session._extractPDUs (D:\wamp64\www\product\SmppClient\node_modules\smpp\lib\smpp.js:206:8)
at Socket. (D:\wamp64\www\product\SmppClient\node_modules\smpp\lib\smpp.js:93:8) {
code: 'ERR_INVALID_ARG_TYPE'