Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Account name already exists #26748

Open
sentry-io bot opened this issue Aug 29, 2024 · 3 comments · May be fixed by #26959
Open

Error: Account name already exists #26748

sentry-io bot opened this issue Aug 29, 2024 · 3 comments · May be fixed by #26959
Assignees
Labels
regression-prod-12.1.0 Regression bug that was found in production in release 12.1.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-hardware-wallets type-bug

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 29, 2024

Sentry Issue: METAMASK-XBQ5

Error: Account name already exists
  at exports.defaultsetAccountLabel (app/scripts/controllers/preferences.js:441:26)
  at MetamaskController.unlockHardwareWalletAccount (app/scripts/metamask-controller.js:4218:32)
  at async i.<anonymous> (app/scripts/lib/createMetaRPCHandler.js:23:7)
...
(1 additional frame(s) were not displayed)
@Gudahtt Gudahtt added type-bug regression-prod-10.2.0 Sev2-normal Normal severity; minor loss of service or inconvenience. labels Aug 29, 2024
@gauthierpetetin gauthierpetetin added regression-prod-12.1.0 Regression bug that was found in production in release 12.1.0 team-hardware-wallets and removed regression-prod-10.2.0 labels Aug 29, 2024
@Akaryatrh
Copy link
Contributor

Akaryatrh commented Aug 30, 2024

I was able to replicate. I'll make the demonstration with a Ledger account but it could be any other hardware wallet account importing action.

  • remove all existing ledger accounts
  • add new MM account and name it "Ledger 1"
  • add new hardware account, select Ledger and and select first account
  • See that error "Account name already exists" is displayed above account list
  • See that we have an uncaught error "Account name already exists" on console.

(Sorry for the 10s delay around 00:30s, i was unlocking the Ledger device)

BTW, I can not replicate the issue on develop branch, so bug might have been fixed with a recent commit.

Private Zenhub Video

@vivek-consensys
Copy link

@Akaryatrh I am able to reproduce using the latest develop build.
image.png

@Akaryatrh
Copy link
Contributor

Akaryatrh commented Sep 2, 2024

New update: finally issue can be reproduced when creating a build, but not on dev mode. I'm investigating where error is not caught then.

EDIT: I also found out that, despite the error message, account was anyway imported. So user ends up with 2 "Ledger 1" accounts on its accounts list (fortunately, real ledger account gets a "ledger" badge so we can identify it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-prod-12.1.0 Regression bug that was found in production in release 12.1.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-hardware-wallets type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

Successfully merging a pull request may close this issue.

4 participants