-
Notifications
You must be signed in to change notification settings - Fork 378
NotSupportedError: GATT operation failed for unknown reason #352
Comments
Hi @harshjv, really cool demo BTW! I'll give a try ASAP. Maybe something the current implementation doesn't do correctly for Chrome Android to support it 🤔 Side question: were you able to make WebUSB working on Chrome Android? I think it works last time I tried. thanks |
Any updates on this? |
There is no update yet, the conclusion is this bug happens when you fall into a known bug with the current firmware, you need in that case to Reset Pairings on the NanoX and forget on the phone/computer side. You also should not install too much apps on the device (no more than 50 for instance) because we've seen it's more likely you fall into the problem. This will require a new firmware. |
Sorry to drop in on this un-invited. I came across this whilst encountering similar issues with web-bluetooth for a website I'm implementing. It worked well in Win 10 chrome, but had issues on Android Chrome throwing NotSupportedError. Anyway, the solution for me was to sort out my charateristic notification subscriptions to correctly return promises all the way through the chain and to make sure subscriptions happened serially rather than in parallel. If you want to see what I'm talking about, have a look here: https://github.com/SGSVertigo/vertigo-web/commits/master at commits 86fd91df96adbf52a6e2a56c2176103560cee5f9 and f62bad57d21a8ea0515ea7ceedf8d78018d175c4. My theory is that android fails when it is trying to execute notification subscriptions in parallel. I can't see where in your code base you're implementing it, but the symptoms sounds similar! |
@ben-oxley are you talking about working with a Ledger device or something else? because we have a bug in our current firmware that can make this error appearing in some circumstance, our firmware team is working on fixing it. |
No, just a very similar bug I've been investigating with some unrelated hardware (microchip rn Bluetooth module) but I think actually the bug and limitation is the pc side, a mix of os and chrome. Might be unrelated but I know how long I've been banging my head against the wall trying to solve it. |
I have also seen this occur on some hardware where the promises for various web-BLE operations return instantly rather than when the BLE radio is ready to send again. So if I had:
I have fixed it with:
In particular, I've seen this instant-promise-resolution on my Pixel 3A XL, one particular model of macbook, and both were fixed by inserting delays. |
@gre and when could we expect that to happen? the Nano X firmware sadly isnt open source (website of ledger clearly says proprietary) so we cant really see anything, and there were Updates to the Nano X since your comment, and considering that BT is one of the big things the nano X offers it should kinda work and not be lying around as a known issue for 11 months by now. |
@gre Any updates on this? It's been over two years and our users are still unable to use the their Ledger on the go via Bluetooth. |
+1 I am also encountering this My specific error is: Error: NetworkError: GATT Server is disconnected. Cannot retrieve services. (Re)connect first with |
Bump, same here... |
I am using Ledger Nano X with;
Unfortunately, web-ble doesn't work in Chrome for Android v74. It throws this error;
Although same works with Chrome on Desktop.
Demo: https://cross-chain-playground.harshjv.com/wallet/btc/bitcoin (select Ledger Nano X on Chrome for Android)
The text was updated successfully, but these errors were encountered: