MetaMask / MetaMask/metamask-extension
[Bug]: MetaMetricsController error shown when locking `MetaMask wallet: "profile_id" value is not a valid trait type`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
An error message from MetaMetricsController appears when locking the MetaMask wallet. The error states that the "profile_id" value is not a valid trait type. This occurs during the wallet lock action and may indicate an issue with metrics or profile trait handling.
### Expected behavior
Locking the wallet should complete without errors, and no MetaMetricsController warnings or errors should be logged.
### Screenshots/Recordings
https://github.com/user-attachments/assets/a34f8afc-6bca-43bd-a6e7-4e6f79344361
### Steps to reproduce
1. Open MetaMask and unlock the wallet.
2. Perform normal wallet activity (optional).
3. Lock the MetaMask wallet.
4. Observe the console/log output.
### Error messages or log output
```shell
MetaMask wallet: "profile_id" value is not a valid trait type
```
### Where was this bug found?
Live version (from official store)
### Version
13.19.0
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
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 by tracing MetaMetricsController during the wallet lock action and reproduce the reported "profile_id" trait error on Chrome 13.19.0 on macOS. Identify where the profile trait is handled and verify that locking the wallet completes without MetaMetricsController warnings or errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- analytics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100