Let’s accept it — Blockchain Developers (the cool solidity fans) have faced error from Metamask at some point or the other. Sometimes its easy to just reset the bad boy, but sometimes developers spend hours together debugging metamask.
In this article, I will talk about most common Metamask errors, how can you debug / solve them and how can you reset your entire slate (development environment) to have a fresh new canvas to work upon.
- Step 1: Before the Dapp is loaded into the browser, the user needs to select the account in Metamask.
- Step 3: Metamask prompts the user to allow Dapp to access its address.
- Step 5: User click on send button to send transaction; Metamask prompts the user for confirmation and transaction is sent to Ethereum network.
While developing a Dapp, for testing purposes, a local account with Ganache is used. When Metamask is connected to localhost 9545 and it throws error you can try:
Restarting Ganache, Restart Browser or restart computer. Also check Metamask configuration and prefer using “127.0.0.1" instead of local host.
Another parameter recently added is Chain ID. I tried using hexadecimal number, it refused — but provides a number to use.
Wrong address error