MetaMask / extension-provider

A module for allowing a WebExtension to access the web3 provider from an installed MetaMask instance
MIT License
67 stars 28 forks source link

MetaMask: Lost connection to "MetaMask". #22

Open domi1981 opened 3 years ago

domi1981 commented 3 years ago

maybe someone in here can help me. I'm getting a blank page from metamask. i'm getting the error below.

MetaMask: Lost connection to "MetaMask". Error: MetaMask: Disconnected from MetaMask background. Page reload required. i moz-extension://ReplacedMyIdWithThis/inpage.js:8 _handleDisconnect moz-extension://ReplacedMyIdWithThis/inpage.js:1 _handleStreamDisconnect moz-extension://ReplacedMyIdWithThis/inpage.js:1 n moz-extension://ReplacedMyIdWithThis/inpage.js:17 t moz-extension://ReplacedMyIdWithThis/inpage.js:17 c moz-extension://ReplacedMyIdWithThis/inpage.js:17 t moz-extension://ReplacedMyIdWithThis/inpage.js:17 h moz-extension://ReplacedMyIdWithThis/inpage.js:8 f moz-extension://ReplacedMyIdWithThis/inpage.js:8 emit moz-extension://ReplacedMyIdWithThis/inpage.js:8 M moz-extension://ReplacedMyIdWithThis/inpage.js:17 v moz-extension://ReplacedMyIdWithThis/inpage.js:17 nextTick moz-extension://ReplacedMyIdWithThis/inpage.js:17 run moz-extension://ReplacedMyIdWithThis/inpage.js:17 p moz-extension://ReplacedMyIdWithThis/inpage.js:17 inpage.js:1:6901 _handleDisconnect moz-extension://ReplacedMyIdWithThis/inpage.js:1 _handleStreamDisconnect moz-extension://ReplacedMyIdWithThis/inpage.js:1 n moz-extension://ReplacedMyIdWithThis/inpage.js:17 t moz-extension://ReplacedMyIdWithThis/inpage.js:17 c moz-extension://ReplacedMyIdWithThis/inpage.js:17 t moz-extension://ReplacedMyIdWithThis/inpage.js:17 h moz-extension://ReplacedMyIdWithThis/inpage.js:8 f moz-extension://ReplacedMyIdWithThis/inpage.js:8 emit moz-extension://ReplacedMyIdWithThis/inpage.js:8 M moz-extension://ReplacedMyIdWithThis/inpage.js:17 v moz-extension://ReplacedMyIdWithThis/inpage.js:17 nextTick moz-extension://ReplacedMyIdWithThis/inpage.js:17 run moz-extension://ReplacedMyIdWithThis/inpage.js:17 p moz-extension://ReplacedMyIdWithThis/inpage.js:17 MetaMask: Lost connection to "MetaMask RpcProvider". inpage.js:1:17750 MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead. For more information, see: https://eips.ethereum.org/EIPS/eip-1193 inpage.js:1:9708

Any help would be greatly appriciated.

legobeat commented 1 month ago

Would you be able to share a reproduction - that is, the code that that yields this error?

Also, you might want to try with the newly released metamask-extension-provider@4.0.0, which was just released. Is this still an issue?