Closed Sirgulator closed 2 years ago
Hey there, thanks for submitting an issue!
Can you give more detail about the version of Arsnap on which you're experiencing this issue? Did you build it from source or are you using the deployed Wallet at arsnap.org?
Also, can you check whether Arsnap is listed in the "Snaps" section of Metamask's settings?
This was tested on arsnap.org, page was stuck on loading, full log was supplied. Arsnap has not connected to metamask, not in the settings
Thanks for the additional info. This sounds like it's an issue with Metamask, I'll forward it to their Snap team.
Just to be sure I understand how the issue manifests, when you say
Error direct on loading page
Do you mean that the page is stuck in the loading animation even before you press any of the two "Connect with Metamask" button? Do they even show up?
Also, did you grab the logs from the page's console or from Metamask's background script's console?
EDIT: By the way, could you please try to uninstall/reinstall Metamask on your browser? (making backups if anything important is in there!). Sorry for the trouble, I haven't been able to reproduce this error and I haven't seen the error you pasted so far so I can't really test anything on my end.
I got an answer from someone at Metamask and they suggested the error you see could come from having both Metamask and Metamask Flask installed on your browser. Is it the case for you?
If it is, then it's due to some implementation details on Metamask's end. The only workaround here is to temporarily disable Metamask while running Metamask Flask on your browser.
Without any answer from @Sirgulator I assume the issue was the one described in my previous comment (two Metamask versions being installed at the same time).
I implemented a mechanism that detects whether Metamask has been installed more than once or if it isn't installed at all in 1b5fcd3eba5b84f0ba161e4c7f05a1f282f537e7. It will now display a proper message with indications instead of an infinite loading animation. It should be included in the next wallet version (v0.0.8) coming next week.
Tested on Chromium 103.0.5060.114 and Metamask Flask: 10.17.0-flask.0 Error direct on loading page.