Fixing the Metamask “switch networks” bug
How to resolve the “switch networks” issue when using Metamask with deSwap
If you've updated your Metamask browser extension to v10.28.1, you may experience an error message when using deSwap and other dApps. This may happen if you have added a custom network previously, and then try to switch to it via deSwap.
In this scenario you may see this message:
The display error reflects a discrepancy between the network configuration ID and the stored configuration settings.
––––––
To solve this issue temporarily:
For a quick fix, open the Metamask extension and manually select the network you need to switch to.
–––––––
To solve this issue permanently
- Head to the Metamask extension > Settings > Networks
- Add a “/” after the RPC URL e.g. https://arb1.arbitrum.io/rpc becomes https://arb1.arbitrum.io/rpc/
- Click ‘Save’
That’s it! Your issue should now be resolved.
*Important to note: This issue doesn’t impact users who added networks via dApp on v10.28.1 or through the MetaMask UI in v10.28.1.
For more reading and/or overall updates to fixes for this particular issue, please visit the Github thread below:
https://github.com/MetaMask/metamask-extension/issues/18453#issuecomment-1500799968