Closed freddy6218 closed 1 year ago
@freddy6218 can you please retest.
Produces the same Error
ArgumentException: Invalid segment. Expected segment begin. Message is: HIRMG:2:2:+3060...
at libfintx.FinTS.Helper.ProcessSegmentBegin(String message, StringBuilder currentSegment) in C:\Users\fredd\Meine Ablage\C#\libFintx\src\libfintx.FinTS\Helper\Helper_Segment.cs:line 41
at libfintx.FinTS.Helper.SplitSegments(String message) in C:\Users\fredd\Meine Ablage\C#\libFintx\src\libfintx.FinTS\Helper\Helper_Segment.cs:line 142
at libfintx.FinTS.Helper.DecryptSegments(List`1 encryptedSegments) in C:\Users\fredd\Meine Ablage\C#\libFintx\src\libfintx.FinTS\Helper\Helper_Segment.cs:line 231
at libfintx.FinTS.Helper.SplitEncryptedSegments(String message) in C:\Users\fredd\Meine Ablage\C#\libFintx\src\libfintx.FinTS\Helper\Helper_Segment.cs:line 244
at libfintx.FinTS.Helper.Parse_Segments(FinTsClient client, String Message) in C:\Users\fredd\Meine Ablage\C#\libFintx\src\libfintx.FinTS\Helper\Helper.cs:line 166
Hi @iamtorsten could you take a look at PR #115 ?
I think I found the bug which created the error Expected segment begin
here.
The added unit test for this still fails because you added a test on segment HITAN
= "900"
, but ING seems to use HITANS
, not HITAN
. The implementation for this seems to be missing somewhere around here.
Is thant enough for you to continue on this issue?
@iamtorsten I do not get actually the idea why you used Helper.Parse_Message
instead of Helper.Parse_Segments
. It looks to me that Helper.Parse_Segments
would support segment HITANS
, but ..Parse_Message
does not.
Link to your added test: https://github.com/iamtorsten/libfintx/commit/dd6cd461a6ebb20b35654223abf161167e36de1a
Bekomme seit je her folgenden Fehler beim Verwenden der ING
Invalid segment. Expected segment begin. Message is: HIRMG:2:2:+3060...
LOG
Log.txt
TRACE
Trace.txt