You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I play with the example https://example.usedapp.io/balance, I keep getting the below error if I switch the network to any chain that is not specified in the readOnlyUrls. For instance, in the example code, only Mainnet, Ropsten, Kovan, and Arbitrum are assigned to the readOnlyUrls in the config, if you switch between those networks, it's working fine, but if you choose other networks like Aribitrum, Matic or BSC it's gonna throw the error.
I'm not sure whether it's the feature or a bug, thanks.
{
"code": 1013,
"message": "MetaMask: Disconnected from chain. Attempting to connect.",
"stack": "Error: MetaMask: Disconnected from chain. Attempting to connect.\n at l._handleDisconnect (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:39838)\n at l._handleDisconnect (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:43644)\n at l._handleChainChanged (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:40445)\n at l._handleChainChanged (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:45560)\n at o.<anonymous> (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:38011)\n at i (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:54745)\n at o.emit (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:55285)\n at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:53809\n at f.write [as _write] (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:1:53832)\n at w (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/inpage.js:17:29867)"
}
Above error got tested by using Chrome Version 100.0.4896.127 (Official Build) (arm64) + MetaMask
Just tried on Brave and Brave wallet, looks like everything works fine on it 🤔
The text was updated successfully, but these errors were encountered:
the problem might be caused by this bug in Metamask. Could you please update to the latest useDApp, set noMetamaskDeactivate: true in your DAppConfig and let us know if this works?
the problem might be caused by this bug in Metamask. Could you please update to the latest useDApp, set noMetamaskDeactivate: true in your DAppConfig and let us know if this works?
Hi @yivlad , yep, noMetamaskDeactivate: true works like a charm, thanks. I'll close this now
Hi there,
When I play with the example https://example.usedapp.io/balance, I keep getting the below error if I switch the network to any chain that is not specified in the
readOnlyUrls
. For instance, in the example code, onlyMainnet
,Ropsten
,Kovan
,andare assigned to theArbitrum
readOnlyUrls
in the config, if you switch between those networks, it's working fine, but if you choose other networks like Aribitrum, Matic or BSC it's gonna throw the error.I'm not sure whether it's the feature or a bug, thanks.
Above error got tested by using
Chrome Version 100.0.4896.127 (Official Build) (arm64)
+MetaMask
Just tried on Brave and Brave wallet, looks like everything works fine on it 🤔
The text was updated successfully, but these errors were encountered: