Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect throws randomly. #26

Open
douglasb99 opened this issue May 11, 2020 · 4 comments
Open

connect throws randomly. #26

douglasb99 opened this issue May 11, 2020 · 4 comments

Comments

@douglasb99
Copy link

  1. the browser check often comes back internally as brave when in Chrome browser ( I saw this when debugging)
  2. connect method seems to often throw when a device is there and seems unstable. Errors thrown can be difficult to catch (not caught by try catch and just end script). I run the testdevice method which does not throw, and then on background thread immediately afterwards the connect method throws.
@faboweb
Copy link
Contributor

faboweb commented May 11, 2020

which Ledger Cosmos app version do you have?

@douglasb99
Copy link
Author

douglasb99 commented May 12, 2020

It happens when from same action eg button you first run the testDevice method then if that doesn't throw you run the .connect() method. The connect method will throw an error (unable to connect) It also happens when you run the connect twice from same user action. I Try to run twice with first a test to display the error if we cannot connect and second time on separate thread to actually do the signing. Sometimes you can see an error saying cannot connect to ledger, or something like that ( it is not seen on my computer that is just what was reported to me). Maybe the issue is not with your SDK but the one it relies on. You cannot call connect twice in quick succession from same user action so running test then awaiting that then running connect will throw an error. Its not a coding error on my part.

@douglasb99
Copy link
Author

I have 1.5.3

@faboweb
Copy link
Contributor

faboweb commented May 12, 2020

Can you try installing the latest version (since about half a year waiting to be released):

Steps to install the version:
• open Ledger Live
• connect your Ledger
• go to settings (top right icon)
• go to "Experimental features"
• activate "Manage Providers" and set it to number 4
• go to "Manager" to install apps
• look for the Cosmos App
• You should now see the version 2.2.2
• install that version on your Ledger Nano S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants