MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.9k stars 4.85k forks source link

[Bug]: `Error: premature close` #21078

Open seaona opened 12 months ago

seaona commented 12 months ago

Describe the bug

Problem: whenever I was in the process of unlocking the wallet using the popup, I entered my password and changed networks (to a non responding one and back to a working one). MetaMask started displaying the error premature close any time I opened and close the popup. After that, whenever I tried dapp interactions they started to fail (not opening the popup, only after some time )

Expected behavior

No response

Screenshots

https://github.com/MetaMask/metamask-extension/assets/54408225/32d6e57f-666a-4778-b012-07454c716308

https://github.com/MetaMask/metamask-extension/assets/54408225/12e9a0d7-133b-4982-a0d8-8145043caad0

Steps to reproduce

  1. Open popup
  2. Add password to unlock the wallet
  3. Change networks to a non responding network (ie. optimism without supported infura id)
  4. Change back to mainnet
  5. Close popup
  6. Open popup
  7. See console -- everytime you close the popup the error is triggered

Error messages or log output

No response

Version

11.1.0

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

huazhuangnan commented 9 months ago

me too

gauthierpetetin commented 7 months ago

Hi @danjm @vandan , Do you think this falls in the scope of Platform team or Wallet API team?

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.