BanklessDAO / bankless-dao-website

[ARCHIVED] The repository for the frontend of https://www.bankless.community/
MIT License
38 stars 16 forks source link

"An unexpected error has occurred" when trying to claim BANK with MetaMask #61

Closed aspiers closed 3 years ago

aspiers commented 3 years ago

When trying to claim BANK with MetaMask on both Brave and Chrome, it displays:

An unexpected error has occurred.

This appears to not be a duplicate of #55 which is supposed to be fixed and is related to WalletConnect. People on Discord seem to be confirming that a) I'm not the only one experiencing the issue with MetaMask b) it works with Firefox.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://www.bankless.community/claim on Brave or Chrome with MetaMask extension installed
  2. Click on 'Connect Wallet'
  3. Do the normal MetaMask account approval thing
  4. See error

Expected behavior No error

Desktop (please complete the following information):

Additional context

I went to the dev console and saw:

Error: Minified React error #301; visit https://reactjs.org/docs/error-decoder.html?invariant=301 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at ro (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at jo (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at Hu (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at Pi (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at xi (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at _i (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at vi (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at _next/static/chunks/framework-a5c79f31fcd1b378be14.js:1
    at t.unstable_runWithPriority (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)
    at Wl (_next/static/chunks/framework-a5c79f31fcd1b378be14.js:1)

When I visit that URL, it says:

The full text of the error you just encountered is:

Too many re-renders. React limits the number of renders to prevent an infinite loop.
Oktalize commented 3 years ago

@aspiers We have just released an update that should fix this. Please let us know, thanks!

aspiers commented 3 years ago

Yes, it's fixed - thanks a lot!