-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: wallet_switchEthereumChain no longer working after update to 10.28.2 Chrome #18509
Comments
same here |
same issue identified both on MacOS and Windows |
Metamask v10.28.2 on Chrome has created this bug. Hopefully a fix soon. |
Metamask v10.28.2 on Chrome on MacOS Hopefully a fix soon. |
Also running into this. It's broken existing dapp deployments as well?
|
If you are experiencing this, you can switch networks within MetaMask. Of course, we want to fix this properly so that you don't have to do that. I am trying to understand the problem. Can someone who is experiencing this try the following:
If someone can try that and report the results, it can help with the investigation of this bug. Also, if someone can share any dapps where they are experiencing this bug, it can help with the investigation. |
@danjm I can't even delete the network in step 3, the network is still there after confirming the deletion. Could it be a new issue? Btw you can try our dapp experiencing the issue https://syncswap.xyz/ |
@0xnakato Ah, I see, you are right. Well I understand the problem now and am working on a fix. This bug will be experienced by anyone who added a network while on v10.27.0 or earlier, and are now on v10.28.1 or v10.28.2 and trying to confirm a dapp prompted switch to that network. This bug will not affect users who first added the network, via a dapp The simplest work around is to open MetaMask and use the network switcher. But you will have to do that every time a dapp prompts you to switch to that network. If you want to permanently fix the issue for a given network, you can open MetaMask, then open "Settings", then select the "Network" tab of settings and edit any field in any way. Save the change in the network form. Switching to this network from dapp (or deleting it) will succeed. I have demo's this workaround in the attached video, which first shows the failure to switch and then shows the successful network switch after editing the rpc url in the network form by adding a trailing switchnetwork-workaround.mp4 |
@danjm Awesome! Thank you for the investigation, details and instructions! Really appreciate it and looking forward to the fix! |
thank you @danjm I think your explanation probably saved me hours of fumbling this weekend <3 |
@danjm Facing the same problem, and temporarily fixed by removing and readd the network. BTW will u fix it in this version? I think it may be a liitle complex for common users to understand why they need to remove and readd the network, and also how to do it. Thanks! |
@danjm Thank you for explanation. This solution fixed the problem but is there any chance that this problem fix in next versions of metamask? It is gonna be big problem for dapps that using metamask for connect wallet. |
This is still causing issues since 10.28.1. Error: |
same for me, and also on uniswap too |
can't delete network successfully. the only way to switch network is open metaMask and use network switcher :(
|
@Bot80926 Yes, you are right, this is really a bad ux :( hope Metamask can fix it :) |
waiting for a fix |
same for me, waiting for a fix |
Worked fine with Metamask Version 10.28.2 and Chrome Version 111.0.5563.65. Decided to update Chrome to 112.0.5615.50 - network switch stopped working. Tested on Zenland App |
same for me, Metamask Version 10.28.2 and Chrome Version 111.0.5563.146. |
same, waiting for a fix 🙏 |
First remove the previously added network, then re-add it, and the network switching works again. It is speculated that this is related to a Chrome update. |
Hi all with this issues , I solved with change method call wallet _switchEthereumChain to wallet_addEthereumChain. |
Hi Wait for fix |
waiting for a fix |
same issue on multiple dapps. |
Chrome version 112.0.5615.50 issue is still here |
same :(, did you find the fix? |
@danjm Noticed this issue is still persisting on Chrome v. 112.0.5615.49. Thank you |
You might want to try removing the network from your Metamask Settings in the network tab and re-adding it from the dapp. Doing so helped me resolve the issue. Hope this helps! |
Is there an estimated date for this fix? |
Facing same issue, waiting for fix to publish. |
I just manually installed 10.28.3 and all looks good now. The latest release is not available in Chrome Web Store quite yet, please wait for it to be released and currently installed extensions to be updated and then everything should work as expected. |
Seems to be working for me now. I followed a couple of the steps above:
I am running version 10.28.2 btw. |
still seeing this. running 10.28.2 as well |
Cannot switch network in MM for all chains. |
@petermazzocco Nice find! Though possibly a little complicated for average users to follow. |
Thanks everyone for your patience. The fix for this has now been rolled out to all chrome/brave users v10.28.3 |
Still seeing this issue when trying to change testnets between sepolia and mumbai. |
Me too. |
Ping! Still have the issue with 10.28.3 too ! |
The same issue
|
Still an issue
|
Apparently its due to specifying capital casing for network id when calling wallet_switchEthereumChain. So instead of 0xAA36A7, use 0xaa36a7 for Sepolia. This is definitely still a bug as many online documents explicitly advise to use the capital case version (e.g. https://docs.alchemy.com/docs/how-to-set-up-the-metamask-sdk). Also online dec-to-hex converters (such as https://www.rapidtables.com/convert/number/decimal-to-hex.html) report CAPITAL case versions for the conversion. |
Apparently there is a fix: 0ea765e |
I also encountered this problem on the metamask app version 7.17.0, and the two versions of the same two mobile phones, one is normal, the other will report this error {code: -32603, message: 'networkConfigurationId undefined does not match a configured networkConfiguration', data: {…}} !Looking forward to answer! |
Looks like this is an issue when there are wallet that are also installed as an extension other than Metamask see -- https://stackoverflow.com/a/77457807 |
Describe the bug
After the release of
10.28.2
wallet_switchEthereumChain
is no longer working. Error in console is{code: -32603, message: 'networkConfigurationId undefined does not match a configured networkConfiguration', data: {…}}
.10.28.1
has an issue where user has to approve the function twice. Downgrading to10.26.1
allowed thewallet_switchEthereumChain
to function. (Did not try versions between 10.26.1 and 10.28.1) It appears that the issue only happens when switching to a chain other than Ethereum but can not confirm 100%Steps to reproduce
10.28.2
is installed in Chrome Desktop.wallet_switchEthereumChain
, trade.coinbook.app is an example.wallet_addEthereumChain
on error.Error messages or log output
{code: -32603, message: 'networkConfigurationId undefined does not match a configured networkConfiguration', data: {…}}
Version
10.28.2
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: