Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Have trouble starting metamask #311

Open
HelloWeb3World opened this issue Apr 24, 2023 · 9 comments
Open

Have trouble starting metamask #311

HelloWeb3World opened this issue Apr 24, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@HelloWeb3World
Copy link

Describe the bug
I get a lot of error when setup matamask (like 8/10)
image

To Reproduce
const browser = await dappeteer.launch({
headless: false,
})
const metaMask = await dappeteer.setupMetaMask(browser, {
seed: "test test test test test test test test test test test junk",
password: "xxx",
});

Logs

Some Logs from console

Expected behavior
can setup metamask successfully

Screenshots
If applicable, add screenshots to help explain your problem.

System:

  • MacOs
  • OS version 13.3.1
  • NodeJs version v18.14.2
  • dappeteer version 5.0.1
  • testing framework
  • testing framework version
  • puppeteer version 19.10.1
  • playwright version

Additional context
Add any other context about the problem here.

@HelloWeb3World HelloWeb3World added the bug Something isn't working label Apr 24, 2023
@stefan-girlich
Copy link

Same issue for 100% of attempts. This error is logged in Chrome DevTools; not sure if related:

s:76 Error: No response from RPC
  at ui-10.js:1:258405
  at s (sentry-install.js:1:12302)
(anonymous) @ s

@BeroBurny
Copy link
Contributor

Hey @HelloWeb3World and @stefan-girlich

Currently, there is resealing a new version 5.1.0, that version will have the latest MetaMask version, and is possible that will solve the issue running it.
If is issue still present can I get some reproducting repository?

@stefan-girlich
Copy link

Thanks for the prompt reponse, @BeroBurny .
Happy to try out the new version; would you know when it will be published on npm?

@stefan-girlich
Copy link

stefan-girlich commented May 2, 2023

fyi: I was able to reproduce the same error with playwright.
@BeroBurny - would you know when 5.1.0 is available via npm? thx!

@BeroBurny
Copy link
Contributor

Hey, sorry for the delay (weekend, and stuff).
Had a problem with ci for releasing 5.1.0 but fixed it and released 5.1.1

@KIttojo
Copy link

KIttojo commented May 19, 2023

@BeroBurny
I have such params at config

  "dependencies": {
    "@chainsafe/dappeteer": "^5.1.1",
    "puppeteer-core": "^20.2.1"
  }

But this problem still occurs. When fix, sir?

image

@sofianeOuafir
Copy link

sofianeOuafir commented May 19, 2023

same issue here with 5.1.1 any work around?

@Evan-Baekdu
Copy link

Any solution?

@mint-pz
Copy link

mint-pz commented Aug 10, 2023

I tried to reload the metamask page and here is my workaround code:

const browser = await dappeteer.launch({ headless: false })

 await sleep(2000)

    const pages = await browser.pages()
    for (const page of pages) {
        if (page.url().startsWith('chrome-extension')) {
            await page.reload()
        }
    }

await sleep(2000)

const metaMask = await dappeteer.setupMetaMask(browser, {
seed: "test test test test test test test test test test test junk",
password: "xxx",
});

System:

  • OS: macOS
  • NodeJs version: v18.14.2
  • dappeteer version: ^5.2.0
  • testing framework: jest
  • testing framework version: ^29.6.1
  • puppeteer version: ^21.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants
@stefan-girlich @BeroBurny @sofianeOuafir @KIttojo @Evan-Baekdu @mint-pz @HelloWeb3World and others