decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
414 stars 130 forks source link

Unable to Pack DIDComm Message in certain situations #1364

Closed nickreynolds closed 3 months ago

nickreynolds commented 3 months ago

Bug severity 3

Describe the bug There is a bug (found while updating the Agent Explorer) where the Veramo agent is unable to correctly pack DIDComm messages when trying to send a message from a peer-did and gives a 'could not map an agent key to an skid` error.

Strangely, this bug only occurs on the 2nd or later packDIDCommMessage call of an agent's lifespan. The first call correctly packs the message, but subsequent calls have failures.

To Reproduce Steps to reproduce the behaviour: You can see this error by running this branch of the Agent Explorer: https://github.com/veramolabs/agent-explorer/commit/05789564c704c84f82dd054841c178f618ee5465

Versions (please complete the following information):

nickreynolds commented 3 months ago

closed by https://github.com/decentralized-identity/veramo/pull/1365