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

Reading a Ukrainian passport results in "ERROR - Wrong length" #6

Open
dJani97 opened this issue Apr 21, 2023 · 0 comments
Open

Reading a Ukrainian passport results in "ERROR - Wrong length" #6

dJani97 opened this issue Apr 21, 2023 · 0 comments
Assignees

Comments

@dJani97
Copy link

dJani97 commented Apr 21, 2023

Hi!

I've been testing the SDK, and I tried to scan a Ukrainian passport. The reading seems to complete successfully, but then an error page shows up with the following text:

Problem uploading: - NFC Chip data

Here's the log from the console:

2023-04-21 9:53:21.6740 - tagReaderSessionDidBecomeActive
2023-04-21 9:53:24.6540 - tagReaderSession:didDetect - iso7816(<NFCISO7816Tag: 0x282dbabe0>)
2023-04-21 9:53:24.6540 - tagReaderSession:connecting to tag - iso7816(<NFCISO7816Tag: 0x282dbabe0>)
2023-04-21 9:53:24.6550 - tagReaderSession:connected to tag - starting authentication
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.6680 - Error reading tag: sw1 - 0x6B, sw2 - 0x00
2023-04-21 9:53:24.6680 - reason: Wrong parameter(s) P1-P2]
2023-04-21 9:53:24.6680 - Re-selecting eMRTD Application
2023-04-21 9:53:24.6750 - Starting Basic Access Control (BAC)
2023-04-21 9:53:24.6760 - BACHandler - deriving Document Basic Access Keys
2023-04-21 9:53:24.6760 - BACHandler - Getting initial challenge
2023-04-21 9:53:24.6820 - BACHandler - Doing mutual authentication
2023-04-21 9:53:24.7490 - BACHandler - complete
2023-04-21 9:53:24.7490 - BAC Successful
2023-04-21 9:53:24.7490 - Reading tag - DG1
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.7830 - TagReader - Number of data bytes to read - 91
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8110 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8390 - TagReader - Number of data bytes to read - 19726
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8510 - Error reading tag: sw1 - 0x67, sw2 - 0x00
2023-04-21 9:53:24.8510 - reason: Wrong length
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8530 - ERROR - Wrong length
2023-04-21 9:53:24.8530 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8620 - Error reading tag: sw1 - 0x68, sw2 - 0x82
2023-04-21 9:53:24.8620 - reason: Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8630 - ERROR - Secure messaging not supported
2023-04-21 9:53:24.8630 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8750 - Error reading tag: sw1 - 0x68, sw2 - 0x82
2023-04-21 9:53:24.8750 - reason: Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8770 - ERROR - Secure messaging not supported
2023-04-21 9:53:24.8770 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8860 - Error reading tag: sw1 - 0x68, sw2 - 0x82
2023-04-21 9:53:24.8860 - reason: Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8870 - ERROR - Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:27.5870 - tagReaderSession:didInvalidateWithError - Session invalidated by user

For now, I have no other device at hand to test with.

Flutter: 3.7.11
klippa_identity_verification_sdk: 0.0.8
iPhone 7 (iOS 15.7.3)

I found a similar error report here, with another passport scanning library and a Russian passport: AndyQ/NFCPassportReader#89. This may be useful.

@RobinFarmer RobinFarmer self-assigned this May 30, 2023
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

2 participants