You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment
100% Xiaomi devices - 20+ different models. Mostly Redmi Note 13 Pro 5G, Poco X6 5G, and Xiaomi 13
Android OS Versions: 13 and 14 (our min is Android 11, but only see issues on 13/14)
The text was updated successfully, but these errors were encountered:
I had hoped that the error codes defined in ScanCallback would be exhaustive:
ScanCallback constant
Value
SCAN_FAILED_ALREADY_STARTED
1
SCAN_FAILED_APPLICATION_REGISTRATION_FAILED
2
SCAN_FAILED_INTERNAL_ERROR
3
SCAN_FAILED_FEATURE_UNSUPPORTED
4
SCAN_FAILED_OUT_OF_HARDWARE_RESOURCES
5
SCAN_FAILED_SCANNING_TOO_FREQUENTLY
6
...but apparently not. Even worse, I looked for a while, and could not find in the Android source, where onScanFailed is called from (nor what possible values it might receive — beyond what is listed in ScanCallback, e.g. 100, as you are hitting).
Internally, it appears that Android just defaults to Unknown as the display of any error besides what is known, hinting that any error code is possible. Which is super not helpful if you're trying to decide how you should handle such an error case.
Unless you can track down what error code 100 means, I'll just have to change Kable to not throw the InternalException and instead propagate an IllegalStateException with "Unknown" error code — not much else I think I can do from Kable to be more helpful, unfortunately. 😢
Description
We're seeing this exception thrown in production when trying to scan for ble devices.
Environment
100% Xiaomi devices - 20+ different models. Mostly Redmi Note 13 Pro 5G, Poco X6 5G, and Xiaomi 13
Android OS Versions: 13 and 14 (our min is Android 11, but only see issues on 13/14)
The text was updated successfully, but these errors were encountered: