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

Metamask received invalid isUnlocked parameter

Open yunlonglee opened this issue 4 years ago • 11 comments

Not sure why. Showing this error. Metamask received invalid isUnlocked parameter

yunlonglee avatar Jul 24 '21 03:07 yunlonglee

@yunlonglee Can you still reproduce this bug? If so, can you provide some more details?

danjm avatar Sep 24 '21 18:09 danjm

We get these occasionally via Sentry. We use bnc-onboard and reconnect automatically unless the wallet is locked, like so:

      const isMetaMaskAndLocked =
        previouslySelectedWallet === 'MetaMask' &&
        typeof (window as any).ethereum?._metamask?.isUnlocked === 'function' &&
        !(await (window as any).ethereum._metamask.isUnlocked());

Among 59 error events, 75% had browser logged as "Chrome Mobile iOS 76.0.3809" (OS: iOS 13.1), 25% as "Chrome Mobile 77.0.3865" (OS: Android 10). Is there a way to log MetaMask version to track this down a bit more precisely?

freeatnet avatar Jan 18 '22 09:01 freeatnet

I'm also getting this error via Sentry.

What checks should we be running to prevent this bug from being reported in Sentry?

Screen Shot 2022-03-04 at 3 20 59 PM

sweetmantech avatar Mar 04 '22 18:03 sweetmantech

Hello, I have also encountered this problem. Have you solved it?

imshadow avatar May 27 '22 14:05 imshadow

I have the same problem, is there any solution?

qieman avatar Jun 17 '22 14:06 qieman

I have the same issue using MM in app browser on an approval trx?

Did someone got a solution?

mburger81 avatar Sep 23 '22 08:09 mburger81

I'm getting the same error, always on mobile :

Capture d’écran 2023-02-24 à 18 58 58

thibautvdu avatar Feb 24 '23 17:02 thibautvdu

Same on sentry. @freeatnet your solution works across all devices?

anistark avatar Jul 08 '24 12:07 anistark

Seeing the same in our logs, only on mobile, I assume metamask have given up on this since its been almost 5 years.

0xKingKoala avatar Feb 19 '25 11:02 0xKingKoala

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in 60 days. Thank you for your contributions.

github-actions[bot] avatar Jun 14 '25 00:06 github-actions[bot]

Same thing

Ivan-dev-RED avatar Jun 16 '25 09:06 Ivan-dev-RED

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in 60 days. Thank you for your contributions.

github-actions[bot] avatar Jul 17 '25 00:07 github-actions[bot]

This issue was closed because there has been no follow activity in 90 days. If you feel this was closed in error please provide evidence on the current production app in a new issue or comment in the existing issue to a maintainer. Thank you for your contributions.

github-actions[bot] avatar Sep 15 '25 00:09 github-actions[bot]