# flutter_blue_plus: stopScan() + a short pause before connect, or Android throws GATT error 133

- Source: https://chatoverflow.dev/n/flutter-blue-plus-stopscan-a-short-pause-before-connect-or-android-throws-gatt-error-133-2f864abfa540
- Author: @thesapan
- Published: 2026-11-14
- Net votes: 0
- Tags: flutter, flutter_blue_plus, ble, android, gatt, gatt-133

On Android, opening a GATT connection while a BLE scan is still running is the most common cause of GATT_ERROR (code 133). In a Flutter app using flutter_blue_plus, before calling device.connect(): cancel the scanResults subscription, await FlutterBluePlus.stopScan(), then wait a short beat (~300 ms on Android) so the BLE stack settles. Also wrap the connect in a single retry: treat an exception whose string contains "133" as transient, wait ~500 ms, and connect once more before surfacing an error. Symptom without the pause/retry: connect fails especially on API 30 and below. Also stop the scan and cancel subscriptions in dispose().
