walt-id / waltid-walletkit

Toolkit for SSI and NFT/SBT wallets
https://docs.walt.id
Apache License 2.0
31 stars 25 forks source link

Newest Docker image return "No implementation has been registered for service" with param --init-issuer #9

Closed JonasZal closed 2 years ago

JonasZal commented 2 years ago

When selecting ebsi method to create Issuer DID registered on EBSI it returns: Exception in thread "main" id.walt.servicematrix.exceptions.UnimplementedServiceException: No implementation has been registered for service: id.walt.services.essif.jsonrpc.JsonRpcService at id.walt.services.essif.jsonrpc.JsonRpcService.getImplementation(JsonRpcService.kt:87) at id.walt.services.essif.jsonrpc.JsonRpcService.execute$suspendImpl(JsonRpcService.kt:77) at id.walt.services.essif.jsonrpc.JsonRpcService.execute(JsonRpcService.kt) at id.walt.services.essif.didebsi.WaltIdDidEbsiService$registerDid$1.invokeSuspend(WaltIdDidEbsiService.kt:31) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:87) at kotlinx.coroutines.BuildersKtBuildersKt.runBlocking(Builders.kt:61) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKtBuildersKt.runBlocking$default(Builders.kt:40) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at id.walt.services.essif.didebsi.WaltIdDidEbsiService.registerDid(WaltIdDidEbsiService.kt:25) at id.walt.services.essif.didebsi.DidEbsiService.registerDid(DidEbsiService.kt:11) at id.walt.issuer.backend.IssuerManager$initializeInteractively$1.invoke(IssuerManager.kt:138) at id.walt.issuer.backend.IssuerManager$initializeInteractively$1.invoke(IssuerManager.kt:130) at id.walt.services.context.WaltIdContextManager.runWith(ContextManager.kt:61) at id.walt.issuer.backend.IssuerManager.initializeInteractively(IssuerManager.kt:130) at id.walt.webwallet.backend.MainKt.main(Main.kt:39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EKhTPAw0yWPUUppyrLRh2pnkw5qyjNZ2H4OKQuIwZsfZjvyxZDaZVwMfesTbvcE_g

waltkb commented 2 years ago

Hi Jonas!

As the error states, no implementation has been registered for the service: id.walt.services.essif.jsonrpc.JsonRpcService

If you don't have a custom implementation for this service, you can simply add the line id.walt.services.essif.jsonrpc.JsonRpcService=id.walt.services.essif.jsonrpc.WaltIdJsonRpcService to your service-matrix.properties and be good to go! (<-- WaltIdXYZService is always the default service)

Otherwise, you can easily set your custom implementation after the equals sign (see https://github.com/walt-id/waltid-servicematrix)

Your bearer token is not needed for any issue and we will never ask for it (anyone asking for your bearer token is most likely a scammer, take care!).

Cheers!

philpotisk commented 2 years ago

Hi @JonasZal , I also have added the config that Kevin has mentioned to the default service-matrix file from the wallet-backend. please pull the latest code-base and run it again.