Open hamzasharif opened 2 years ago
@hamzasharif tried reproducing using the same OS/Browser combo, and not getting the same errors. Can you provide more details.
This is also happening to me. I tried uninstalling and reinstalling metamask, but the problem persists.
Related? #9407
Yes it is, I can replicate this issue on multiple machines. Each with different OS versions (Mac OS).
@kevinghim what kind of info would help with replicating this?
Thank you!
I've replicated this in firefox on my end. The problem is timing based, if I open my browser and wait for 30s before I go to the first page, I do not get this issue.
My best guess is that there's some point during plugin initialization where if a request is asked of the plugin it has an error due to not being properly initialized but catches that error and prints to the console instead of letting the error propagate.
One solution would be to provide a new function isReady()
that provides a promise that resolves only when metamask has finished initializing and is ready to be used, such that web app developers can wait for that promise to resolve before making any requets to metamask.
Hi Everyone, Is there any solution for this problem. I tried to reload app until it's initialized. it's working on chrome and firefox. but not working on metamask browser on the phone.
I can confirm that what @monsterbitar describes can also be replicated in Chrome, even when trying out the getting started guide in the MetaMask Docs. Waiting for something like 30s before going to the page works so it definitely seems to be timing based.
this can happen if you have two dApps in different tabs with different provider connected
It happens to me too. I would love to have a solution.
I found temporary solution. the solution is just reload app until ethereum._state.initialized
is true
I found temporary solution. the solution is just reload app until
ethereum._state.initialized
istrue
yeah, it works for me as well.
Any update on this?
Any update on this?
ethereum._state.initialized is a totally temp solution. but everytimes reload the website, this state "ethereum._state.initialized" is false. This issue cannot to work better. I think this issue will be fix.
Any news?
Hey there, is there any news on this?
Since today, my MetaMask (Firefox extension) shows a completely blank screen (both popup and home.html)
And any tab opened display those errors in the console:
MetaMask: Content script lost connection to "MetaMask Background Multiplex". undefined MetaMask: Muxed traffic for channel "metamask-provider" failed. undefined MetaMask: Content script lost connection to "MetaMask Background Legacy Multiplex". undefined MetaMask: Muxed traffic between channels "provider" and "metamask-provider" failed. undefined MetaMask: Muxed traffic for channel "publicConfig" failed. undefined
I am also able to reproduce this issue on Firefox and Chromium based browsers with the MetaMask extension.
When closing out of the browser completely (tabs and all), and reopening directly to a dApp (say you selected the link from discord, or are testing in a local dev environment which opens the browser to that page for you), MetaMask will consistently throw the above errors and will not work until you refresh the page.
This problem exists not only on my dApps, but very popular ones as well such as UniSwap.
This is quite a breaking issue for front-end developers trying to create a smooth experience for users. An option to refresh the page once MetaMask has loaded or have a function IsReady() as someone has suggested above would definitely help with this issue.
I solved that issue using this code. var timerID = setInterval(function() { if (document. readyState === 'complete') { if (ethereum._state.initialized == true) { clearInterval(timerID); } else { location.href = location.href; } } }, 1000);
Describe the bug
Hey there,
I've noticed every time I close Chrome and re-open then go to a page that interacts with the MetaMask extension it breaks the sites integrations.
See the following console output
:
I can consistently replicate this issue. It happens on any site that interacts with MetaMask. Is there a fix or a workaround for this?
Steps to reproduce
Setup:
Error messages or log output
Version
10.8.1
Build type
No response
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response