extension completely broken for HW wallets (ledger) - indefinite syncing due to GenericApiError
See original GitHub issueHello,
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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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
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.