MetaMask / MetaMask/metamask-extension

[Bug]: `Error#3: #snapGetPublicKey - unable to call snap, wallet is locked (anonymous) @ sentry-install.js:1` and `Failed to delete OnChain triggers`

Open
#26,705 4 comments 0 reactions 0 assignees View on GitHub
Sev2-normal team-notifications-deprecated type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

I see this error in the console `Error#3: #snapGetPublicKey - unable to call snap, wallet is locked
(anonymous) @ sentry-install.js:1` but I didn't have any snap installed. Just a fresh imported wallet. I also see `Failed to delete OnChain triggers`

### Expected behavior

_No response_

### Screenshots/Recordings

![Screenshot from 2024-08-28 12-11-14](https://github.com/user-attachments/assets/3e3d59e7-a8f7-45bb-9a91-97000dcbb931)

### Steps to reproduce
not clear repro steps
1. Install MM beta https://chromewebstore.google.com/detail/metamask-beta/pbbkamfgmaedccnfkmjcofcecjhfgldn
2. Import a wallet
3. Lock
4. Check console

### Error messages or log output

_No response_

### Detection stage

In production (default)

### Version

12.1.0-beta (not sure if earlier)

### Build type

None

### Browser

Chrome

### Operating system

Linux

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in MetaMask beta on Chrome after importing and locking a wallet, then trace the snapGetPublicKey and Failed to delete OnChain triggers messages shown at sentry-install.js:1. Done means the cause of both console errors is identified and verified against the locked-wallet scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.