-
Notifications
You must be signed in to change notification settings - Fork 236
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
Error reading tag: sw1 - 62, sw2 - 82 - reason: End of file/record reached before reading Le bytes #42
Comments
Could you please try the latest version (currently 1.0.10) - There were some fixes in 1.0.9 that may well have fixed this. |
Yes, I have also tested 1.0.10, with the same result, and then I gradually went down from that version and the last one that works is 1.0.7 |
OK, could you please test the following - let me know if that works: V1.0.10 - TagReader.swift line 294 - change: I have a horrible feeling that your passport doesn't handle the unknown amount of data to be read command (256) but could you confirm that that change fixes the issue? |
I can confirm that this fixed the problem |
@douglasg I've created a branch - eofreached with a potential fix. Basically I'm first trying to read an arbitary amount of data (which should fail with your passport). At this point, I drop down to reading smaller chunks. So you should see the first SOD read fail, it will then redo BAC and retry again which hopefulyl will work. Could you please test and let me know? |
I also had such problem. Int(Amount) fixed it. |
Branch - eofreached also works good. |
@AndyQ Sorry for the late feedback but I have now tested the branch eofreached and it works |
@douglasg, @SaliienkoAleksandr - Thanks for testing this! I'll merge it into master and it will be in the next release |
With version 1.0.7 it works, with versions 1.0.8 to 1.0.10 I get the following error messages:
this repeats endlessly
Affected version: > 1.0.7
Document: Passport from spain
The text was updated successfully, but these errors were encountered: