MetaMask / MetaMask/metamask-extension
[Sentry] Error: Couldn't find networkClientId for chainId
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-XFVC](https://metamask.sentry.io/issues/6309355477/?referrer=github_integration)
```
Error: Couldn't find networkClientId for chainId
at handler (app/scripts/metamask-controller.js:2881:38)
at .revokePermissionsForOrigin (app/scripts/metamask-controller.js:6097:39)
at exports.revokePermissionsHandlerimplementation (app/scripts/lib/rpc-method-middleware/handlers/wallet-revokePermissions.ts:80:3)
at middleware (app/scripts/lib/rpc-method-middleware/createMethodMiddleware.js:69:24)
at new Promise ()
...
(10 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start with the stack-trace locations in app/scripts/metamask-controller.js:2881 and app/scripts/lib/rpc-method-middleware/handlers/wallet-revokePermissions.ts:80. Trace revokePermissionsHandlerimplementation into revokePermissionsForOrigin and determine why the chainId lacks a networkClientId. Done means this Sentry error no longer occurs during permission revocation, but the issue does not name a reproduction or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- authorization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100