Open sairanjit opened 3 months ago
Does this also happen in Node.JS? If so, could you please provide the repro in Node? That makes it easier to test
Yes @TimoGlastra This is also happening in the Node.JS as well. I have created a repro for the same here https://github.com/sairanjit/credo-ts-examples/tree/connection-reuse
One observation is that after the timeout Error
has occurred then we receive the keylist response message that it was waiting for
{
"@type": "https://didcomm.org/coordinate-mediation/1.0/keylist-update-response",
"@id": "311c73dd-df95-413b-9724-347f91f5e88b",
"~thread": {
"thid": "a8aee7d9-65e3-4049-a211-d23657cbf175"
},
"updated": [
{
"recipient_key": "FAMBvTH1PnvzaxPV42h9hXF46ruAiPdiQm8FFYMoxj4g",
"action": "add",
"result": "success"
}
]
}
@TimoGlastra @genaris
Changing the message receiving logic from concatMap
to tap
fixes this issue
https://github.com/openwallet-foundation/credo-ts/blob/main/packages/core/src/agent/Agent.ts#L155
@TimoGlastra There is already a PR #1276 That addresses the required changes for this issue
The scenario is
User 1
andUser 2
connection with reuse works fine with passinginvitationDid
. But it fails if I create invitation fromUser 1
usinginvitationDid
and try to accept it withUser 3
. The error I am getting isERROR: Error handling message with type https://didcomm.org/didexchange/1.1/request
I have created a repro for the same here https://github.com/sairanjit/credo-askar-wallet-react-native/tree/connection-reuse