rainbowkit icon indicating copy to clipboard operation
rainbowkit copied to clipboard

[bug] Got "No matching key, history: 1662323434234" while disconnecting after refresh the page using wallet connect

Open jingxuan98 opened this issue 3 years ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

RainbowKit Version

1.0.4

wagmi Version

1.3.4

Current Behavior

After connecting via WalletConnect & refreshing the page, it throws this error when i try to disconnect Screenshot 2023-07-07 at 6 59 12 PM

Able to disconnect before refreshing the page

Any idea to at least catch this error and handle it softly? i tried using a try catch when calling the disconnect() but the page still crashes

Expected Behavior

Able to disconnect without throwing an error

Steps To Reproduce

  1. Connect via WalletConnect
  2. Refresh the page
  3. Disconnect after refresh

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

jingxuan98 avatar Jul 07 '23 11:07 jingxuan98

Running into this as well

Also running into No matching key. keychain <some alphanumeric value here> Full stack trace:

Error: No matching key. keychain: <some alphanumeric value here>
  at this.get(./node_modules/@walletconnect/core/dist/index.es.js:1:16678)
  at this.decode(./node_modules/@walletconnect/core/dist/index.es.js:1:18736)
  at this.decode(./node_modules/@walletconnect/core/dist/index.es.js:1:18798)
  at <anonymous>(./node_modules/@walletconnect/core/dist/index.es.js:1:47319)
  at ReflectApply(./node_modules/@walletconnect/core/dist/index.es.js:1:47537)
  at EventEmitter.prototype.emit(./node_modules/events/events.js:158:1)
  at index_es_Ot.onMessageEvent(./node_modules/@walletconnect/core/dist/index.es.js:1:36928)

This seems to be coming from WalletConnect, but more specifically it seems to be caused by how @walletconnect/ethereum-provider is used (based on this comment)?

This is noticeably reproducible for us in incognito mode, and prevents loading up WalletConnect and Rainbow wallets from the Connect Wallet modal. Coinbase and Metamask seem to work fine.

The latest version of Wagmi includes upgraded versions of WalletConnect that seem to be more stable. Let me know if you're still seeing this problem.

DanielSinclair avatar Jul 18 '23 17:07 DanielSinclair

Yes @DanielSinclair , still getting this issue with latest rainbowkit 1.0,7 and wagmi 1.3.9 Screenshot 2023-07-21 at 10 35 34 AM

jingxuan98 avatar Jul 21 '23 02:07 jingxuan98

Yes @DanielSinclair , still getting this issue with latest rainbowkit 1.0,7 and wagmi 1.3.9 Screenshot 2023-07-21 at 10 35 34 AM

I am also getting same error with latest version

Bhupesh-mfsi avatar Jul 27 '23 11:07 Bhupesh-mfsi

I tried clearing my local storage of react app and it worked for me.

Bhupesh-mfsi avatar Aug 04 '23 06:08 Bhupesh-mfsi

are there any updates on this issue? if not could some one tell me where I could at least catch the error?

lunarinlunarinlunarin avatar Aug 07 '23 07:08 lunarinlunarinlunarin

facing same issues aswell ! any update on this ?

deepak-interakt avatar Aug 08 '23 05:08 deepak-interakt

same error here w/ the latest

"@rainbow-me/rainbowkit": "^1.0.8",
"wagmi": "^1.3.10"

fodisi avatar Aug 09 '23 21:08 fodisi

Hi everyone this was discussed here. And it seems to be an issue related to the wallet implementation side.

glitch-txs avatar Aug 11 '23 12:08 glitch-txs