MetaMask / MetaMask/metamask-extension
[Sentry] Error: Invalid parameters for method "snapRpc": At path: snapId -- Expected a string, but received: undefined.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-YJYA](https://metamask.sentry.io/issues/7303242835/?referrer=github_integration)
```
Error: Invalid parameters for method "snapRpc": At path: snapId -- Expected a string, but received: undefined.
at new o (/metamask/common-4.js:3:151727)
at c.N (/metamask/background-3.js:1:9634)
at None (/metamask/background-3.js:1:98550)
at async te.handleRequest (/metamask/background-3.js:1:40928)
at async E.p (/metamask/common-4.js:3:68198)
...
(4 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start with the linked Sentry issue and the stack frames in common-4.js and background-3.js, then trace the snapRpc request that reaches validation without a snapId. The issue is complete when the invalid request path is identified and corrected, with the error no longer occurring for the affected flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100