LedgerHQ / ledgerjs

⛔️ MOVED to monorepo "ledger-live"
https://github.com/LedgerHQ/ledger-live
Apache License 2.0
574 stars 375 forks source link

When using bluetooth web transport, application method call hangs forever #440

Open satb opened 4 years ago

satb commented 4 years ago

We have an app installed on the ledger X. Everything for the app works with the webusb transport without issues. Now switching to the bluetooth transport, the pairing happens fine, but any api calls done on the instance of the app now hangs forever.

So, with webusb while the below works, it isn't with the bluetooth. It hangs on the getAccount step.

const transport = await createTransport(); const app = new VET(transport); let account = await app.getAccount(${pathPrefix}/${index});

However, if I close the app, the transport errors out. But if I don't close the app, the last line in the code above never returns.

satb commented 4 years ago

Interestingly, the btc app works fine to atleast get the accounts. Does the app also need to support the bluetooth transport?

satb commented 4 years ago

@btchip - Any update on this?

DalderupMaurice commented 4 years ago

I think I'm having a similar issue. I am trying to get an account (using WebUSB), but when I send the command to the Ledger it never returns because an action was already pending (although I haven't sent any actions). #461