question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

extension completely broken for HW wallets (ledger) - indefinite syncing due to GenericApiError

See original GitHub issue

Hello,

I had a working Yoroi in firefox that was connected to my ledger nano S, that suddenly stopped syncing. I tried deleting it and adding again, I tried using different browsers, and even completely different computers that never had Yoroi installed.

It just doesn’t seem to work anymore, I just see spinning wheels.

These are logs:

[INFO] Yoroi v.4.7.400.0
[INFO] Commit: 64ae9837afe3347f8ae7d7af0b8ec98d03e2a1c2
[INFO] Network: mainnet
[INFO] User Agent: { ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:89.0) Gecko/20100101 Firefox/89.0',
  browser: { name: 'Firefox', version: '89.0', major: '89' },
  engine: { name: 'Gecko', version: '89.0' },
  os: { name: 'Mac OS', version: '10.14' },
  device: { vendor: undefined, model: undefined, type: undefined },
  cpu: { architecture: undefined } }
----
[2021-10-07T11:45:16+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple 'hash length' of length 28 but got length Len(29)."
[2021-10-07T11:45:16+02:00] WalletStore::refreshWalletFromRemote {
  "message": "api.errors.GenericApiError: undefined",
  "name": "l",
  "stack": "t@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/275.bundle.js:2:302834
c@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_ef4bde61.bundle.js:1:3707
l@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:134800
refreshTransactions@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:3111
",
  "id": "api.errors.GenericApiError",
  "defaultMessage": "!!!An error occurred, please try again later.",
  "values": {}
}
[2021-10-07T11:45:35+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple 'hash length' of length 28 but got length Len(29)."
[2021-10-07T11:45:35+02:00] WalletStore::refreshWalletFromRemote {
  "message": "api.errors.GenericApiError: undefined",
  "name": "l",
  "stack": "t@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/275.bundle.js:2:302834
c@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_ef4bde61.bundle.js:1:3707
l@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:134800
refreshTransactions@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:3111
",
  "id": "api.errors.GenericApiError",
  "defaultMessage": "!!!An error occurred, please try again later.",
  "values": {}
}
[2021-10-07T11:45:55+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple 'hash length' of length 28 but got length Len(29)."
[2021-10-07T11:45:55+02:00] WalletStore::refreshWalletFromRemote {
  "message": "api.errors.GenericApiError: undefined",
  "name": "l",
  "stack": "t@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/275.bundle.js:2:302834
c@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_ef4bde61.bundle.js:1:3707
l@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:134800
refreshTransactions@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:3111
",
  "id": "api.errors.GenericApiError",
  "defaultMessage": "!!!An error occurred, please try again later.",
  "values": {}
}
[2021-10-07T11:46:15+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple 'hash length' of length 28 but got length Len(29)."
[2021-10-07T11:46:15+02:00] WalletStore::refreshWalletFromRemote {
  "message": "api.errors.GenericApiError: undefined",
  "name": "l",
  "stack": "t@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/275.bundle.js:2:302834
c@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_ef4bde61.bundle.js:1:3707
l@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:134800
refreshTransactions@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:3111
",
  "id": "api.errors.GenericApiError",
  "defaultMessage": "!!!An error occurred, please try again later.",
  "values": {}
}
[2021-10-07T11:46:35+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple 'hash length' of length 28 but got length Len(29)."
[2021-10-07T11:46:35+02:00] WalletStore::refreshWalletFromRemote {
  "message": "api.errors.GenericApiError: undefined",
  "name": "l",
  "stack": "t@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/275.bundle.js:2:302834
c@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_ef4bde61.bundle.js:1:3707
l@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:134800
refreshTransactions@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:3111
",
  "id": "api.errors.GenericApiError",
  "defaultMessage": "!!!An error occurred, please try again later.",
  "values": {}
}
[2021-10-07T11:46:55+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple 'hash length' of length 28 but got length Len(29)."
[2021-10-07T11:46:55+02:00] WalletStore::refreshWalletFromRemote {
  "message": "api.errors.GenericApiError: undefined",
  "name": "l",
  "stack": "t@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/275.bundle.js:2:302834
c@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_ef4bde61.bundle.js:1:3707
l@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:134800
refreshTransactions@moz-extension://34132d26-6ff7-084d-8d0a-0c80666d44c5/js/yoroi_868f51f5.bundle.js:1:3111
",
  "id": "api.errors.GenericApiError",
  "defaultMessage": "!!!An error occurred, please try again later.",
  "values": {}
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vsubhumancommented, Dec 17, 2021

There is a bug in Yoroi and it is being investigated at the moment. As soon as we have a fix for this a new release will be pushed.

1reaction
rooooooooobcommented, Nov 3, 2021

I don’t know what the root cause would be but in case this helps anyone working on it I just wanted to point this out that

[2021-10-07T11:46:55+02:00] AdaApi::refreshTransactions error: "Deserialization failed in Ed25519KeyHash because: Invalid cbor: expected tuple ‘hash length’ of length 28 but got length Len(29).

This could be mixing up the keyhash portion of a enterprise or non-staking address (28 bytes) with the entire address (29 bytes - 1 byte for the address header)

I thought it could also be the cbor bytes are being treated as the keyhash itself, so you have the 1 extra byte for the cbor bytes tag, but afaik that can only encode the type+length in one single byte when the length is <24 and this would be 28.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solve a synchronization error
A synchronization error may occur in Ledger Live when there is or has been a temporary problem with Ledger's blockchain explorers or network ......
Read more >
Solving a MetaMask connection issue
Open the Ethereum (ETH) app on your Ledger device before starting the "Connect Hardware Wallet > Ledger > Continue" sequence in Metamask.
Read more >
Fix USB connection issues with Ledger Live
Before you begin. Please make sure all applications and browser extensions are fully closed when attempting to connect.
Read more >
MetaMask and Ledger Integration Fixed! + New ...
Key Takeaways: — Due to a breaking update in Chromium-based browsers earlier this year, MetaMask + Ledger functionality has been difficult.
Read more >
The Safest Way to Use MetaMask With Ledger Hardware ...
Learn how to use MetaMask with Ledger hardware wallet for safer tranactions. ... Anything connected to the internet is not entirely secure, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found