Error enableWeb3() at 1/11/2023

HI,
Everything is OK still today(1/11/2023). I got error.
Mycode import {useMoralis, useMoralisWeb3Api, useERC20Balances} from 'react-moralis';

const {
    authenticate,
    enableWeb3,
    setUserData,
    isAuthenticated,
    isInitialized,
    Moralis,
    user,
    logout,
  } = useMoralis();
  const [ethBalance, setEthBalance] = useState();

Hi @vampiregrodon
You will get this error when you try to call Moralis.enableWeb3() when the metamask is already opened using Moralis.enableWeb3() but the action is not completed in metamask.

Please check if there is already an open metamask window.

Im using web3auth not metamask.
Code running ok still the morning :frowning:

I guess the same error is applicable for all web3 wallets. You will have to call the Moralis.enableWeb3() only once. If you want to call again we have to wait until the previous request is complete.

Do you have the app deployed somewhere? Maybe I can also test it on my end.

thank bro, I resolved my problem.
Problem from my chrome, I uninstall and setup again chrome. Bug has gone :slight_smile:
Thanks bro

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.