Skip to content

ALREADY_CONNECTED_TO_READER when trying to connect #1104

@antoinerousseau

Description

@antoinerousseau

Describe the bug

After some idle time in the iOS simulator, I'm trying to connect with easyConnect and it throws with ALREADY_CONNECTED_TO_READER even though onDidChangeConnectionStatus keeps printing notConnected

To Reproduce
Steps to reproduce the behavior:

  1. Activate terminal
  2. Wait a few minutes (idle computer)
  3. Connect to reader to make a payment in the app

Time (in UTC) when you most recently observed the bug:
Now

Expected behavior
If already connected then don't throw and stay on it, otherwise allow reconnecting.
It should be seamless.

Screenshots

Look at these sequence I'm seeing:

 LOG  [Stripe terminal]: Connected to the reader:  {
  "availableUpdate": null,
  "batteryLevel": null,
  "batteryStatus": "unknown",
  "deviceSoftwareVersion": null,
  "deviceType": "tapToPay",
  "id": "tmr_Ga4Y8ArA8WwgFY",
  "ipAddress": null,
  "isCharging": null,
  "label": null,
  "livemode": false,
  "location": {
    "address": {
      "city": "South San Francisco",
      "country": "US",
      "line1": "354 Oyster Point Blvd",
      "line2": null,
      "postalCode": "94080",
      "state": "CA",
      "town": null
    },
    "addressKana": null,
    "addressKanji": null,
    "displayName": "Stripe HQ",
    "displayNameKana": null,
    "displayNameKanji": null,
    "id": "tml_simulated",
    "livemode": false,
    "phone": null
  },
  "locationId": "tml_simulated",
  "locationStatus": "set",
  "serialNumber": "TAPTOPAYSIMULATOR-1",
  "simulated": false,
  "status": "offline"
}
{
  "code": "ALREADY_CONNECTED_TO_READER",
  "message": "Already connected to a reader. Disconnect from the reader, or power it off before trying again.",
  "metadata": {},
  "name": "StripeError",
  "nativeErrorCode": "1110",
  "underlyingError": {
    "code": "1110",
    "iosDomain": "com.stripe-terminal",
    "message": "Already connected to a reader. Disconnect from the reader, or power it off before trying again."
  }
}
[StripeTerminal] x scope=scpterminal outcome=error_code_1110 event=discoverreaders time=1773246230465
domain=terminal_request

Stripe Terminal React Native SDK version

  • 0.0.1-beta.29

Point of sale device

  • Device: iPhone 17 simulator
  • OS: iOS
  • Version: 26.2
  • Connection type: tap to pay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions