hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

Getting an error 'failed to create a2a request' while connecting with aries-framework-dotnet Web Agent from OSMA #74

Closed x0axz closed 4 years ago

x0axz commented 4 years ago

After QR Scan on OSMA to make a connection with aries-framework-dotnet Web Agent, I get the following error.

Error Log on OSMA

Failed to send A2A message with an HTTP status code of InternaIServerError and content Hyperledger.Aries. AriesFrameworkException: Failed to un-pack message -> Hyperledger.lndy.WaI|etApi.Wal letltemNotFoundException: No value with the specified key exists in the wallet from which it was requested. 

at Hyperledger.Aries.Utils.Cr yptoUtils.UnpackAsync(Wallet wallet, Bytel] message) in /src/ src/Hyperledger.Aries/Utils/ CryptoUtils.cs:|ine 66 

at Hyperledger.Aries.Agents.Agen tBase.UnpackAsync(lAgentContext agentContext, PackedMessageContext message) in /src/src/ Hyperledger.Aries/Agents/ AgentBase.cs:line 170 

-End of inner exception stack trace -

at Hyperledger.Aries.Agents.Agen tBase.UnpackAsync(lAgentContext agentContext, PackedMessageContext message) in /src/src/ Hyperledger.Aries/Agents/ AgentBase.cs:line 175 

at Hyperledger.Aries.Agents.AgentBa se.ProcessMessage(lAgentContext agentContext, MessageContext messageContext) in /src/src/ Hyperledger.ArieS/Agents/ AgentBase.cs:line 124 

at Hyperledger.Aries.Agents.Agent Base.ProcessAsync(lAgentContext context, MessageContext messageContext) in /src/src/ Hyperledger.Aries/Agents/ AgentBase.cs:line 112 

at Hyperledger.Aries.AspNetCore.A gentMiddleware.Invoke(HttpContext httpContext, lAgentProvider agentProvider) in /src/src/ Hyperledger.Aries.AspNetCore/ AgentMiddleware.cs:line 48 

at Microsoft.AspNetCore.Diagn ostics.DeveloperExceptionPage Middleware.|nvoke(HttpContext context)

On CLI:

web-agent-1_1  |       Request finished in 55.9901ms 200 text/html; charset=utf-8
web-agent-2_1  | info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
web-agent-2_1  |       Request starting HTTP/1.1 POST http://localhost:8000/ application/ssi-agent-wire 2405
web-agent-2_1  | fail: Hyperledger.Aries.Agents.AgentBase[0]
web-agent-2_1  |       Failed to un-pack message
web-agent-2_1  | fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
web-agent-2_1  |       An unhandled exception has occurred while executing the request.
web-agent-2_1  | Hyperledger.Aries.AriesFrameworkException: Failed to un-pack message
web-agent-2_1  |  ---> Hyperledger.Indy.WalletApi.WalletItemNotFoundException: No value with the specified key exists in the wallet from which it was requested.
web-agent-2_1  |    at Hyperledger.Aries.Utils.CryptoUtils.UnpackAsync(Wallet wallet, Byte[] message) in /src/src/Hyperledger.Aries/Utils/CryptoUtils.cs:line 66

Screenshots: https://www.dropbox.com/sh/tz9l9iv3wxbhncr/AADtdghXmK9PHlvaxDAVkeK4a?dl=0