stripe-terminal-react-native icon indicating copy to clipboard operation
stripe-terminal-react-native copied to clipboard

discoverReaders throws err after disconnecting a reader

Open vivekvardhanadepu opened this issue 2 years ago • 2 comments

calling discoverReaders after disconnecting from a reader, throws Could not execute discoverReaders because the SDK is busy with another command: discoverReaders PS: In example-app, you are calling cancelDiscovering on goBack, so, this error is not thrown.

Steps to reproduce:

  • discover readers
  • connect to a reader
  • disconnect reader
  • discover readers

Device: any Android 12 emulator

vivekvardhanadepu avatar Sep 28 '22 09:09 vivekvardhanadepu

Can you please fill out this template? It's the same template you see when you press "New Issue" and then the "Get Started" next to "Bug Report".

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

billfinn-stripe avatar Sep 28 '22 14:09 billfinn-stripe

calling discoverReaders after disconnecting from a reader, throws Could not execute discoverReaders because the SDK is busy with another command: discoverReaders PS: In example-app, you are calling cancelDiscovering on goBack, so, this error is not thrown.

Steps to reproduce:

  • discover readers
  • connect to a reader
  • disconnect reader
  • discover readers

Device: any Android 12 emulator

Expected behavior on call of discoverReaders, it should give the readers list irrespective of previous event(here, reader disconnection)

vivekvardhanadepu avatar Sep 28 '22 14:09 vivekvardhanadepu

@vivekvardhanadepu -- what version of the SDK are you using? Note that v0.0.1-beta10 has a fix for a similar-sounding bug: https://github.com/stripe/stripe-terminal-react-native/releases/tag/v0.0.1-beta.10

billfinn-stripe avatar Jan 04 '23 18:01 billfinn-stripe

Closing this due to inactivity. Feel free to reopen or create a new issue if your issue has not been addressed.

billfinn-stripe avatar Apr 27 '23 19:04 billfinn-stripe