Skip to content

INVALID_RESPONSE_BODY when polling on background  #152

@orafaaraujo

Description

@orafaaraujo

Describe the bug
Hello,

We added some nonfatal in the listener LDStatusListener and we noticed a quantity of INVALID_RESPONSE_BODY when the app is in the background (346 non-fatal events affecting 293 users in the last 24 hours).

The LDFailure.message is Exception while handling flag fetch response
The LDFailure.cause is mostly

java.io.IOException: gzip finished without exhausting source

But we also have many of

java.io.IOException: failed to rename /data/user/0/fr.vestiairecollective/cache/com.launchdarkly.http-cache/824d4750cb4389481dda7bf14c725579.0.tmp to /data/user/0/fr.vestiairecollective/cache/com.launchdarkly.http-cache/824d4750cb4389481dda7bf14c725579.0	3

So I would like to understand better the impact of this error, why it happens only in the background, and if there's something that we could do to avoid it.

To reproduce
I couldn’t reproduce it locally.

Expected behavior
Not having INVALID_RESPONSE_BODY, like it happens when the app is in the foreground.

SDK version
3.1.1

Language version, developer tools
Kotlin 1.5.31, building with AGP 7.0.4 and Gradle 7.1

Let me know if you need more information.
Thank you

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