metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Sentry] Error: MetamaskController - No HD Key Tree found

Open sentry[bot] opened this issue 2 years ago • 7 comments

Sentry Issue: METAMASK-MAB4

Error: MetamaskController - No HD Key Tree found
  at MetamaskController.verifySeedPhrase (app/scripts/metamask-controller.js:2651:13)
  at call (app/scripts/lib/createMetaRPCHandler.js:23:31)
...
(14 additional frame(s) were not displayed)

sentry[bot] avatar Jul 31 '23 21:07 sentry[bot]

Events in past 14 days: 117

gauthierpetetin avatar Jul 31 '23 21:07 gauthierpetetin

Here's where the error is thrown in the metamask-controller:

async verifySeedPhrase() {
    const [primaryKeyring] = this.keyringController.getKeyringsByType(
      KeyringType.hdKeyTree,
    );
    if (!primaryKeyring) {
      throw new Error('MetamaskController - No HD Key Tree found');
    }
    const serialized = await primaryKeyring.serialize();
    const seedPhraseAsBuffer = Buffer.from(serialized.mnemonic);

Here are the functions in the KeyringController that lead to the creation of a keyring of type KeyringType.hdKeyTree:

- addNewKeyring
    - createNewVaultAndRestore
    - createFirstKeyTree
        - createNewVaultAndKeychain

gauthierpetetin avatar Jul 31 '23 21:07 gauthierpetetin

Sentry issue: METAMASK-X78T

sentry[bot] avatar Oct 06 '23 14:10 sentry[bot]

Sentry issue: METAMASK-X7EJ

sentry[bot] avatar Nov 06 '23 15:11 sentry[bot]

Sentry issue: METAMASK-X7MC

sentry[bot] avatar Nov 06 '23 15:11 sentry[bot]

Sentry issue: METAMASK-X7PV

sentry[bot] avatar Nov 13 '23 15:11 sentry[bot]

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

github-actions[bot] avatar Feb 12 '24 16:02 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

github-actions[bot] avatar May 12 '24 22:05 github-actions[bot]

Comment from Guto on Slack: it's still valid, lets keep it open until the keyring-controller v16 is live in extension

edit: mobile -> extension

gauthierpetetin avatar May 14 '24 17:05 gauthierpetetin

Mobile issue: https://github.com/MetaMask/metamask-mobile/issues/8196

gantunesr avatar Jun 11 '24 14:06 gantunesr