[Sentry] [Bug]: Metamask fails to load if no response from RPC
Describe the bug
Metamask extention doesnt load, console errors log no response from RPC.
Steps to reproduce
I dunno
Error messages or log output
Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN sentry-install.js:1:1041
Removing intrinsics.Object.hasOwn sentry-install.js:1:102934
Content Security Policy: The page's settings blocked the loading of a resource at eval ("script-src"). moz-extension:9430:29
Content Security Policy: The page's settings blocked the loading of a resource at eval ("script-src"). moz-extension:4421:4
undefined sentry-install.js:1:102934
h moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/sentry-install.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
default moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-6.js:1
send moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-3.js:26
a moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/sentry-install.js:1
(Async: setTimeout handler)
a moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/sentry-install.js:1
newValue moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:10535
send moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-3.js:26
get moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-3.js:26
default moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-6.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
<anonymous> moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
<anonymous> moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
internalRequire moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:10966
runModule moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:11357
entryExports moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:11347
loadBundle moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:11346
<anonymous> moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
Uncaught (in promise) Error: No response from RPC
runtime-lavamoat.js:8939:17
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
InterpretGeneratorResume self-hosted:1458
AsyncFunctionNext self-hosted:668
(Async: async)
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
default moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-6.js:1
send moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-3.js:26
a moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/sentry-install.js:1
(Async: setTimeout handler)
a moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/sentry-install.js:1
apply self-hosted:2705
newValue moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:10535
send moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-3.js:26
get moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-3.js:26
default moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-6.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
g moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
<anonymous> moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
AsyncFunctionNext self-hosted:668
(Async: async)
<anonymous> moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
internalRequire moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:10966
runModule moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:11357
entryExports moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:11347
map self-hosted:180
loadBundle moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/runtime-lavamoat.js:11346
<anonymous> moz-extension://e6834f0f-3a74-4f6a-ad7f-cf3a09d748b9/ui-9.js:1
Version
10.18.3
Build type
No response
Browser
Firefox
Operating system
Windows
Hardware wallet
No response
Additional context
I shouldn't be effectivly locked out of my wallet if the RPC is down, I can't even change the RPC now.
Screenshot for context

Ive had to completly remove metamask and reinstall it again to be able to change RPC.
The and orginal RPC wasnt even down, it was working fine. dont know why metamask giving error the rpc was not responding.
Possibly related to https://github.com/MetaMask/metamask-extension/issues/9196
I'm running into this as well when testing with wdio. Sometimes it will work, most of the time I get the following error as shown in the screenshot.
This is on Chrome 104.0.5112.101 and Metamask 10.18.3.
.
What is metamask using to do automated web integration tests? I have a reasonably small wdio setup that fails ~80% of the time due to this issue. (cc @bschorchit)
@JABirchall Any chance you figured this out?
Is there any solution to this problem? I get this error when I execute transactions synchronously in batches. After an error occurs, shutting down and restarting, and closing the browser will not work. You can only uninstall and reinstall.
10 batch tasks are bound to trigger the error.
@JABirchall Any chance you figured this out?
Nope, uninstalling and reinstalling metamask fixed the issue. So maybe its a longeverty thing. Something (logs, data, vault, transcation, etc) gets too big and metamask cant load because of it. I had been using metamask for about 3 years before this error happened.
Sorry for late reply, but since i had fixed it by reinstalling i didnt bother replying.
OK, thanks. But the wallet of the dapp user cannot be deleted. So I don't know how to fix this problem.
same story in my linux :
and log:

every time I must restart, it will work, but I have some auto login code that must success for not restart, how to fix this "had trouble starting" error?
same pb here on win11 , the extension never loads and definitely cannot uninstall
Yea, i suppose this is a big issue for some people since they havnt backed up their seed and cant just uninstall/reinstall to fix the problem.
I have the password and private key but this procedure doesnt help to recover the seed. because of the failure to load when you try the command
chrome.storage.local.get('data', result => {
var vault = result.data.KeyringController.vault
console.log(vault)
})
you get
Uncaught Error: LavaMoat - property "chrome" of globalThis is inaccessible under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.
``
I have the password and private key but this procedure doesnt help to recover the seed. because of the failure to load when you try the command
chrome.storage.local.get('data', result => { var vault = result.data.KeyringController.vault console.log(vault) })you get
Uncaught Error: LavaMoat - property "chrome" of globalThis is inaccessible under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360. ``
Hi smichea, when you use firefox... see this guide: https://community.metamask.io/t/metamask-blank-screen-on-firefox-but-no-seed/12971/32
same problem
ui-10.js:26 Error: No response from RPC
at ui-10.js:1:228215
at e.<computed> (sentry-install.js:1:682)
at s (sentry-install.js:1:13706)
_ @ ui-10.js:26
runtime-lavamoat.js:7100 SES_UNHANDLED_REJECTION: Error: No response from RPC
at ui-10.js:1:228215
at e.<computed> (sentry-install.js:1:682)
at s (sentry-install.js:1:13706)
handleRejection @ runtime-lavamoat.js:7100
finalizeDroppedPromise @ runtime-lavamoat.js:6928
I have been affected by this bug. What worked for me is inspecting the sqlite db for the id column in the file table then decreasing the fnumber in the filename accordingly. A firefox restart and metamask is working again
As described here
https://github.com/MetaMask/metamask-extension/issues/9196
I have been affected by this bug. What worked for me is inspecting the sqlite db for the id column in the
filetable then decreasing the fnumber in the filename accordingly. A firefox restart and metamask is working again As described here #9196
Thats a different issue.
i am having the same issue as above
ror: No response from RPC
at ui-10.js:1:160842
at e.
is there any solution to this problem, it is a browser extension
Update: fixed it I was able to fix this by removing and reinstalling the extension and for those who did not save their recovery phase (provided you are using a browser extension)
follow these steps here: #1 https : //support.metamask.io/hc/en-us/articles/360018766351-How-to-use-the-Vault-Decryptor-with-the-MetaMask-Vault-Data #2 https : //support.metamask.io/hc/en-us/articles/360015489271-How-to-add-missing-accounts-after-restoring-with-Secret-Recovery-Phrase
Thnx
same issue,