MetaMask / MetaMask/metamask-extension

Error: `networksMetadata` had invalid network client IDs, which have been removed

Open
#38,937 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

external-contributor INVALID-ISSUE-TEMPLATE regression-prod-13.13.0 Sev2-normal team-core-platform
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

Sentry Issue: [METAMASK-XSXW](https://metamask.sentry.io/issues/6961647965/?referrer=github_integration)

```
Error: `networksMetadata` had invalid network client IDs, which have been removed
at exports.NetworkControllerInit (app/scripts/controller-init/network-controller-init.ts:265:22)
at n.initControllers (app/scripts/controller-init/utils.ts:142:20)
at _initControllers (app/scripts/metamask-controller.js:9136:12)
at new MetamaskController (app/scripts/metamask-controller.js:678:30)
at setupController (app/scripts/background.js:1121:16)
...
(6 additional frame(s) were not displayed)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at app/scripts/controller-init/network-controller-init.ts:265 and trace how networksMetadata is assembled during initialization through app/scripts/controller-init/utils.ts and app/scripts/metamask-controller.js. Reproduce or inspect the Sentry error, determine why invalid network client IDs reach initialization, and verify that the initialization error no longer occurs for the affected metadata.

Written by the indexing model from the issue text.

Assessment

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