"Error: No matching key" logged in the wallet and preventing any WC action with connected dapps #3291
-
Hey, We're struggling with an error happening from time to time. We've updated to the latest release of
This is happening in Valora, in a React Native environment (0.70.12). The symptom is the user does an action in a dapp that is already connected to Valora and Valora doesn't show the modal to approve it. But instead logs the error above. Connecting to new dapps still work after that, but any action from the dapp doesn't show the modal in Valora and logs the error. We've seen that clearing local storage allows fixing the issue. But for real users, the only option to recover from this is to reinstall Valora and re-import their account. Which is a big problem. For our users, it looks like Valora is broken because it doesn't show the modal to approve the action. We've searched through the WalletConnect repo and found many related discussions: But none so far giving a definitive way to fix it for good. Do you have any recommendation on what to do next? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
@glitch-txs would you be able to take a look at this? 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hey @jeanregisser, Are you doing some custom cleanup/management of sessions with the client in your wallet? |
Beta Was this translation helpful? Give feedback.
-
Wallet Connect Issue:
|
Beta Was this translation helpful? Give feedback.
@ganchoradkov it appears the issue was we were attempting to pair on all WalletConnect deeplinks including actions. The fix for the issue was to check for the
symKey
in the url and only attempting to pair if present: valora-inc/wallet#4062.It does seem a bit strange that deeplinks without symKeys would even be attempted to pair. Should this validation function thrown a more explicit error for attempting to pairing uri's without a
symKey
?