-
Notifications
You must be signed in to change notification settings - Fork 114
Description
I run this the curl command on a HTTP Port I configured but when I send a command this is the error response I get, please can you help
2023-04-19 09:32:37 - info: Client http:::ffff:127.0.0.1:42188 connected
2023-04-19 09:32:37 - info: Client http:::ffff:127.0.0.1:42188 sent data
2023-04-19 09:32:37 - verbose:
http:::ffff:127.0.0.1:42188
Message Type Indicator [0].......................1200
Bitmap [1].......................................b230054108c080000000000006000000
Processing Code [3]..............................401000
Amount, Transaction [4]..........................50000
Transmission Date and Time [7]...................0000000324
System Trace Audit Number [11]...................000860
Time, Local Transaction [12].....................000000200324
Pos Entry Mode [22]..............................000 (Cardholder Auth Method: <Not Authenticat ed>)
Function Code [24]...............................200
Unknown field [26]...............................5271
Acquiring Institution Ident Code [32]............000202
Retrieval Reference Number [37]..................008408000860
Card Acceptor Terminal Identification [41].......11111111
Merchant Id [42].................................333333333333333
Currency code, transaction [49]..................967
Unknown field [102]..............................0002021802687028001
Unknown field [103]..............................0002040974538467
================================================================================================
2023-04-19 09:32:37 - info: Writing to queue http:::ffff:127.0.0.1:42188 [0]
2023-04-19 09:32:37 - info: New queue item 0
2023-04-19 09:32:37 - info: Processing queue [pending 1 / total 1]
2023-04-19 09:32:37 - verbose: Queue keys dump: 0
2023-04-19 09:32:37 - info: Upstreaming data for http:::ffff:127.0.0.1:42188
/home/winston/git/iso-8583-socket-queue/lib/iso8583/lib/iso8583.js:62
throw new Error(errMsg + ': ' + e.message + " " + e.stack);
^
Error: Error packing data from bit 26
Packager: undefined: Cannot read property 'type' of undefined TypeError: Cannot read property 'type ' of undefined
at ISO8583._pack (/home/winston/git/iso-8583-socket-queue/lib/iso8583/lib/iso8583.js:56:57)
at ISO8583.packWithBinMask (/home/winston/git/iso-8583-socket-queue/lib/iso8583/lib/iso8583.js: 132:27)
at Iso8583Packet.getMessage (/home/winston/git/iso-8583-socket-queue/lib/iso8583-packet/lib/iso 8583Packet.js:259:31)
at Iso8583Packet.getRawMessage (/home/winston/git/iso-8583-socket-queue/lib/iso8583-packet/lib/ iso8583Packet.js:268:34)
at Socket.socket.processQueue (/home/winston/git/iso-8583-socket-queue/lib/socketServer/lib/ups tream.js:204:50)
at Upstream.sendData (/home/winston/git/iso-8583-socket-queue/lib/socketServer/lib/upstream.js: 93:19)
at IncomingMessage. (/home/winston/git/iso-8583-socket-queue/lib/socketServer/lib/cl ientHttpServer.js:105:25)
at IncomingMessage.emit (events.js:198:13)
at IncomingMessage.Readable.read (_stream_readable.js:505:10)
at flow (_stream_readable.js:974:34)
at ISO8583._pack (/home/winston/git/iso-8583-socket-queue/lib/iso8583/lib/iso8583.js:62:13)
at ISO8583.packWithBinMask (/home/winston/git/iso-8583-socket-queue/lib/iso8583/lib/iso8583.js: 132:27)
at Iso8583Packet.getMessage (/home/winston/git/iso-8583-socket-queue/lib/iso8583-packet/lib/iso 8583Packet.js:259:31)
at Iso8583Packet.getRawMessage (/home/winston/git/iso-8583-socket-queue/lib/iso8583-packet/lib/ iso8583Packet.js:268:34)
at Socket.socket.processQueue (/home/winston/git/iso-8583-socket-queue/lib/socketServer/lib/ups tream.js:204:50)
at Upstream.sendData (/home/winston/git/iso-8583-socket-queue/lib/socketServer/lib/upstream.js: 93:19)
at IncomingMessage. (/home/winston/git/iso-8583-socket-queue/lib/socketServer/lib/cl ientHttpServer.js:105:25)
at IncomingMessage.emit (events.js:198:13)
at IncomingMessage.Readable.read (_stream_readable.js:505:10)
at flow (_stream_readable.js:974:34)