MetaMask / MetaMask/metamask-extension
Error: `networksMetadata` had invalid network client IDs, which have been removed
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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