MetaMask / MetaMask/metamask-extension

[Sentry] Error: Invalid parameters for method "snapRpc": At path: snapId -- Expected a string, but received: undefined.

Open
#40,559 0 comments 0 reactions 0 assignees View on GitHub
area-sentry external-contributor INVALID-ISSUE-TEMPLATE regression-prod-13.20.0 Sev2-normal team-core-platform type-bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.