-
Notifications
You must be signed in to change notification settings - Fork 191
Description
Platform on which you observed the bug:
- Android
- iOS
- Other
- Platform is not relevant for this bug
SDK version:
6.4.0
Customer app url
Link to app store / play store / your website
Device on which you observed the bug:
- Grit X2 Pro
- Vantage V3
- Vantage M3
- Polar OH1
- Polar Verity Sense
- Polar H10
- Polar H9
- Polar 360
- Other
- Device is not relevant for this bug
Describe the bug
Description of your observation
We are seeing an issue when calling the getSteps
API method. There is an error being thrown when there are no steps for that day eg device hasn't been worn.
Looking at PolarActivityUtils.kt -> listFiles I would guess it's trying to look for files that do not exist?
It's causing a bit of problem for us as I don't think we can catch the error and so our app just crashes.
io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.Exception: com.polar.androidcommunications.api.ble.model.gatt.client.psftp.BlePsFtpUtils$PftpResponseError: Request failed: Error: 103
Caused by: java.lang.Exception: com.polar.androidcommunications.api.ble.model.gatt.client.psftp.BlePsFtpUtils$PftpResponseError: Request failed: Error: 103
at com.polar.sdk.impl.utils.PolarActivityUtils$listFiles$2.apply(PolarActivityUtils.kt:210)
at com.polar.sdk.impl.utils.PolarActivityUtils$listFiles$2.apply(PolarActivityUtils.kt:209)
How to Reproduce
If you know how the bug may be reproduced please add the steps here
Do not wear the polar device for a day then the next day call getSteps
passing in yesterdays date.
Expected behavior
Description of what you expected to happen.
Screenshots and logs
If applicable, add screenshots or logs to help explain your problem.