eu-digital-identity-wallet / eudi-app-android-wallet-ui

EUDI Wallet Prototype
European Union Public License 1.2
47 stars 15 forks source link

Error on Android EUDI app clicking new National ID #91

Closed Vytek closed 2 months ago

Vytek commented 2 months ago

Summary of the steps taken: 1) Clone repo at version: 0ca76b0c03b52fc811b06b6896dd5bc43c9f7c31 2) Build using Android Studio Version: Jellifish.2023.3.1 3) Create and confirm personal PIN 4) Click on "National ID":

The app return: photo_2024-05-08_12-24-22

Using logcat:

OpenId4VciManager       eu.europa.ec.euidi                   E  issueDocument
                                                                                                    eu.europa.ec.eudi.openid4vci.CredentialIssuerMetadataValidationError$CredentialsSupportedRequired: java.lang.IllegalArgumentException: Credentials Supported Required
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.formats.CredentialIssuerMetadataJsonParserKt.toDomain(CredentialIssuerMetadataJsonParser.kt:293)
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.formats.CredentialIssuerMetadataJsonParserKt.access$toDomain(CredentialIssuerMetadataJsonParser.kt:1)
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.formats.CredentialIssuerMetadataJsonParser.parseMetaData(CredentialIssuerMetadataJsonParser.kt:42)
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.DefaultCredentialIssuerMetadataResolver.resolve-oWdWWdE(DefaultCredentialIssuerMetadataResolver.kt:40)
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.DefaultCredentialIssuerMetadataResolver$resolve$1.invokeSuspend(Unknown Source:15)
                                                                                                        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
                                                                                                        at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
                                                                                                        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
                                                                                                    Caused by: java.lang.IllegalArgumentException: Credentials Supported Required
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.formats.CredentialIssuerMetadataJsonParserKt.toDomain(CredentialIssuerMetadataJsonParser.kt:293) 
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.formats.CredentialIssuerMetadataJsonParserKt.access$toDomain(CredentialIssuerMetadataJsonParser.kt:1) 
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.formats.CredentialIssuerMetadataJsonParser.parseMetaData(CredentialIssuerMetadataJsonParser.kt:42) 
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.DefaultCredentialIssuerMetadataResolver.resolve-oWdWWdE(DefaultCredentialIssuerMetadataResolver.kt:40) 
                                                                                                        at eu.europa.ec.eudi.openid4vci.internal.DefaultCredentialIssuerMetadataResolver$resolve$1.invokeSuspend(Unknown Source:15) 
                                                                                                        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 
                                                                                                        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) 
                                                                                                        at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) 
                                                                                                        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) 
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585) 
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802) 
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706) 
                                                                                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693) 

Reasons

As in the downloadable release version, the app should launch the browser and activate:

PID form for your EUDI Wallet https://preprod.issuer.eudiw.dev/V04/form

passing the relevant data to create a new test PID credential. Is this an option when compiling the app? Or just an issue? How fix the issue? logcat.txt

Thank you very much and please update us.

stzouvaras commented 2 months ago

Hello @Vytek.

The production environment currently supports only draft 12 VCI. Please switch the app flavor to devDebug, and it will work because the development version points to the new draft 13 issuer.

Wonko-42 commented 1 month ago

Good evening @stzouvaras, how should the flavor be changed? I tried adding appFlavor="devDebug" at the end of the gradle.properties file but it keeps building demo?

stzouvaras commented 1 month ago

Hi @Wonko-42

Open the Build Variants menu and select devDebug for the module app (the first one), and it will automatically change all modules for you.

Screenshot 2024-06-03 155944