hyperledger / aries-vcx

aries-vcx is set of crates to work with DIDs, DID Documents, DIDComm, Verifiable Credentials and Hyperledger Aries.
https://didcomm.org
Apache License 2.0
125 stars 83 forks source link

[fix] fix some AATH flow where a connection does not yet exist #1280

Closed gmulhearn closed 3 months ago

gmulhearn commented 3 months ago

continues from changes in #1278, with a small change to not use the "get connection by sender" API, since the connection may not exist in some contexts.

This should fix the recent AATH issue being reported by @nodlesh :

riesVCX Error: Error: Error: POST failed due to non-success HTTP status: 500 Internal Server Error, response body: Error: AgentError: Invalid state: Found no connections by sender's verkey 4rBrKy5znEKSvePtLjsv8ws2ERteF6vjcdabb1PxtrkL

[2024-08-05T03:14:02Z ERROR aries_vcx_backchannel::error] Error: AgentError: AriesVCX error: AriesVCX Error: Error: Error: POST failed due to non-success HTTP status: 500 Internal Server Error, response body: Error: AgentError: Invalid state: Found no connections by sender's verkey 4rBrKy5znEKSvePtLjsv8ws2ERteF6vjcdabb1PxtrkL