Skip to content
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

ISO 8583 parsing went wrong for my message #8

Open
agobiraj2017 opened this issue Sep 27, 2019 · 0 comments
Open

ISO 8583 parsing went wrong for my message #8

agobiraj2017 opened this issue Sep 27, 2019 · 0 comments

Comments

@agobiraj2017
Copy link

I have used your example program to parse my ISO 8583 message.
But I have an issue (exception thrown after field 63 as invalid literal for int() with base 10).

I have captured following debug message ( only copied the important part of debug message here)when I set the ISO message.

This is the array of bits (before) [0, 0, 0, 'X', 'X', 0, 0, 'X', 0, 0, 0, 'X', 'X', 'X', 0, 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 'X', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 'X', 'X', 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 'X', 0, 'X', 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'X', 'X']

This is the input string <300000000000000100092710262200000010262209270572513139303932373130323632325206711320202020202020202020202020202009785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7>

String = 785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7 offset = 114 bit = 63
Size of the message in LLL = 785
Setting bit 63 value 785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7
String = offset = 902 bit = 127

So please kindly let me know where It went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant