MetaMask / metamask-extension

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

[Sentry] Error: write after end #20954

Open sentry-io[bot] opened 11 months ago

sentry-io[bot] commented 11 months ago

Sentry Issue: METAMASK-X71J

Error: write after end
  at MetaRPCClient.send (app/scripts/lib/metaRPCClientFactory.js:22:27)
  at apply (app/scripts/lib/metaRPCClientFactory.js:120:16)
  at new Promise (<anonymous>)
  at a.submitRequestToBackground (ui/store/action-queue/index.ts:118:34)
  at a.getGasFeeEstimatesAndStartPolling (ui/store/actions.ts:3898:10)
...
(19 additional frame(s) were not displayed)
Mattijah commented 10 months ago

Having the same issue, which actually prevents me log in to dApp as the provider is reporting not being connected. Funny thing is, the issue only happens with the JS console closed. If opened, it works every time. I've managed to get connected also when opening the extension.

Screenshot 2023-11-02 at 00 00 54

github-actions[bot] commented 7 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.

gauthierpetetin commented 4 months ago

Reported by @Montoya on Slack:

I’ve been running into the write after end issue when trying to connect to MetaMask automatically from a dapp (the dapp has permission to talk to a Snap, the dapp doesn’t need to do eth_requestAccounts, the dapp should just be able to make requests right away. I see this usually when starting a fresh browser and opening the dapp. The error looks like this (see screenshot). I see it’s been reported by others in the past. https://github.com/MetaMask/metamask-extension/issues/11069 Does anyone have a workaround or has run into this before?

More detail as well as video repro in this Slack thread.

github-actions[bot] commented 1 month 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.

sentry-io[bot] commented 1 month ago

Sentry Issue: METAMASK-XA8X