metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Sentry] [Bug]: Metamask fails to load if no response from RPC

Open JABirchall opened this issue 4 years ago • 45 comments

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.

JABirchall avatar Aug 17 '22 21:08 JABirchall

Screenshot for context

JABirchall avatar Aug 17 '22 21:08 JABirchall

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.

JABirchall avatar Aug 17 '22 23:08 JABirchall

Possibly related to https://github.com/MetaMask/metamask-extension/issues/9196

bschorchit avatar Aug 18 '22 23:08 bschorchit

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.

Screen Shot 2022-08-27 at 2 18 53 PM .

cinjon avatar Aug 27 '22 13:08 cinjon

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)

cinjon avatar Aug 27 '22 14:08 cinjon

@JABirchall Any chance you figured this out?

cinjon avatar Sep 01 '22 16:09 cinjon

image 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.

iteyelmp avatar Mar 20 '23 09:03 iteyelmp

10 batch tasks are bound to trigger the error.

iteyelmp avatar Mar 20 '23 09:03 iteyelmp

@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.

JABirchall avatar Mar 20 '23 10:03 JABirchall

OK, thanks. But the wallet of the dapp user cannot be deleted. So I don't know how to fix this problem.

iteyelmp avatar Mar 21 '23 10:03 iteyelmp

same story in my linux : Screenshot from 2023-03-27 07-17-53 and log: Screenshot from 2023-03-27 07-29-45

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?

hongda3141 avatar Mar 26 '23 23:03 hongda3141

same pb here on win11 , the extension never loads and definitely cannot uninstall

smichea avatar Apr 03 '23 11:04 smichea

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.

JABirchall avatar Apr 03 '23 11:04 JABirchall

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.
``

smichea avatar Apr 03 '23 23:04 smichea

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

linuxh3lper avatar Apr 09 '23 10:04 linuxh3lper

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

noxonsu avatar Apr 14 '23 11:04 noxonsu

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

rodrigoaguilera avatar Apr 15 '23 08:04 rodrigoaguilera

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 #9196

Thats a different issue.

JABirchall avatar Apr 15 '23 11:04 JABirchall

i am having the same issue as above ror: No response from RPC at ui-10.js:1:160842 at e. (sentry-install.js:1:693) at s (sentry-install.js:1:13756) e. @ sentry-install.js:1 (anonymous) @ sentry-install.js:76 E @ ui-11.js:26 await in E (async) (anonymous) @ ui-11.js:26 (anonymous) @ ui-7.js:1 (anonymous) @ ui-10.js:1 e. @ sentry-install.js:1 s @ sentry-install.js:1

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

shadybuffet avatar Jun 26 '23 19:06 shadybuffet

same issue, image

lebed2045 avatar Aug 01 '23 16:08 lebed2045