-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package errors #73
Comments
Hi! You refer to the fields 102 and 103 that are not described in your configuration:
You need to provide format configuration the same way other fields are described. |
Where do I do that please, because i keep different errors, example below http:::ffff:127.0.0.1:57048
============================================================================================= === 2023-04-20 11:34:06 - info: Writing to queue http:::ffff:127.0.0.1:57048 [0] Error: Error packing data from bit 28 |
It is here: https://github.com/juks/iso-8583-socket-queue/blob/master/lib/iso8583/lib/packager/smartVista.js I suggest you get familiar with the source code first, no need to rush. |
Thanks for your help for the last time. especially where it says socket not connected and how do i resolve that? http:::ffff:127.0.0.1:41128
================================================================================================ 2023-04-26 09:44:08 - info: Writing to queue http:::ffff:127.0.0.1:41128 [0] |
It means there is no connection to upstream host for the moment. So after 10 second waiting for connection timeout occurs. |
I realized the application uses the loop-back IP 127.0.0.1 with different port numbers to communicate with the upstream server when sending the ISO message over to the upstream server. per the configuration on the upstream server, it only allows traffic from a specific IP Address which is the IP of the system. Is there a way I can modify the IP in the code? |
You can use options to set the upstream host ip and other parameters https://github.com/juks/iso-8583-socket-queue/blob/master/parameters.js |
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
================================================================================================
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)
The text was updated successfully, but these errors were encountered: