walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

`No matching key. keychain` error

Open Lbqds opened this issue 1 year ago • 3 comments

Describe the bug WalletConnect throws No matching key. keychain error when sending a request

SDK Version (if relevant)

  • @walletconnect/core: "2.11.0"
  • @walletconnect/sign-client: "2.11.0"

To Reproduce The issue occurs with a relatively low probability, and I'm not sure if there are reliable steps to reproduce it.

Additional context When the user refreshes the dApp web page, we use the last session to automatically connect. It turns out that the session exists but the keychain does not exist, resulting in the No matching key. keychain error when sending the request. I suspect the problem is here(although I'm not entirely sure), where delete is a promise. Do we need to wait for the deletion session to complete before deleting the keychain?

Btw, since the keychain is very important for the session, does it make sense to check if both the session and keychain exist when initializing the SignClient?

Lbqds avatar Jan 11 '24 03:01 Lbqds

no one solving it?

1997roylee avatar Mar 23 '24 12:03 1997roylee

Any solution? Having the same error

clemente-xyz avatar May 30 '24 11:05 clemente-xyz

How to solve??

AJShahAgha avatar Jun 08 '24 18:06 AJShahAgha