Skip to content

ISO 8583 parsing went wrong for my message #8

@agobiraj2017

Description

@agobiraj2017

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions