MetaMask / MetaMask/metamask-extension

[Sentry] Error: Migration #149: state.NetworkController.networkConfigurationsByChainId must be present

Open
#32,137 0 comments 0 reactions 0 assignees View on GitHub
area-sentry external-contributor INVALID-ISSUE-TEMPLATE regression-prod-12.16.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-XHHY](https://metamask.sentry.io/issues/6545028730/?referrer=github_integration)

```
Error: Migration #149: state.NetworkController.networkConfigurationsByChainId must be present
at r.migrate (app/scripts/migrations/149.ts:27:7)
at Migrator.migrateData (app/scripts/lib/migrator/index.js:43:46)
at loadStateFromPersistence (app/scripts/background.js:627:9)
at initialize (app/scripts/background.js:460:11)
at (app/scripts/background.js:1336:3)
```

Contributor guide

Open the contributing guide

Research direction

Start with app/scripts/migrations/149.ts at line 27, then trace how it is invoked through app/scripts/lib/migrator/index.js and app/scripts/background.js. Investigate why persisted state lacks state.NetworkController.networkConfigurationsByChainId and determine the expected migration behavior; done means startup no longer produces this migration error and the relevant behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
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.