MetaMask / MetaMask/metamask-mobile

Error: Hex ID must start with 0x prefix

Open
#22,133 1 comment 0 reactions 0 assignees View on GitHub
external-contributor INVALID-ISSUE-TEMPLATE release-7.59.0
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

Sentry Issue: [METAMASK-MOBILE-3VB7](https://metamask.sentry.io/issues/6696615102/?referrer=github_integration)

```
Error: Hex ID must start with 0x prefix
at isSamplingMetaMetricsUser (app/core/Engine/controllers/network-controller/utils.ts:139:45)
at shouldCreateRpcServiceEvents (app/core/Engine/controllers/network-controller/utils.ts:118:30)
at trackRpcEndpointEvent (app/core/Engine/controllers/network-controller/messenger-action-handlers.ts:141:34)
at onRpcEndpointDegraded (app/core/Engine/controllers/network-controller/messenger-action-handlers.ts:95:24)
at ?anon_0_ (app/core/Engine/Engine.ts:458:30)
...
(8 additional frame(s) were not displayed)
```

Contributor guide

Open the contributing guide

Research direction

Start at app/core/Engine/controllers/network-controller/utils.ts around lines 118 and 139, then follow the calls through messenger-action-handlers.ts and Engine.ts shown in the stack trace. Review merged pull request #22093 for prior work; done means the reported Hex ID error no longer occurs during degraded RPC endpoint event tracking.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.