MetaMask / MetaMask/metamask-extension
[Sentry] Error: KeyringController - The operation cannot be completed while the controller is locked.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-XQ6M](https://metamask.sentry.io/issues/6849269482/?referrer=github_integration)
```
Error: KeyringController - The operation cannot be completed while the controller is locked.
at MetamaskController.getDeviceModel (app/scripts/metamask-controller.js:6029:35)
at buildEventFragmentProperties (app/scripts/lib/transaction/metrics.ts:1013:51)
at createUpdateFinalizeTransactionEventFragment (app/scripts/lib/transaction/metrics.ts:673:23)
at exports.handleTransactionDropped (app/scripts/lib/transaction/metrics.ts:241:5)
...
(1 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start with getDeviceModel in app/scripts/metamask-controller.js and trace its call from buildEventFragmentProperties in app/scripts/lib/transaction/metrics.ts. Reproduce or inspect the handleTransactionDropped path for the locked-controller error; done means this Sentry exception no longer occurs in that path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100