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
There is a issue in the InstabugOkhttpInterceptor class of the Instabug Android SDK. The isFileDownload flag, used to determine if an API call response body should be logged, remains true across multiple API calls. This results in inconsistent logging of the response body, especially for file download APIs, where sometimes the response body is not captured.
Implement the InstabugOkhttpInterceptor in an Android project with APIs that include both standard and file download requests.
Make several API calls, including file download first and then non-file download requests.
Observe the response logging behaviour.
Flag in Instabug library codebase
Missing body from the response (Instabug dashboard screenshot)
Expected Result of response (Instabug dashboard screenshot)
Expected Behavior
Each API call's response body should be logged consistently, with the isFileDownload flag properly resetting between API calls.
Actual Behavior
Once the isFileDownload flag is set to true for a file download API call, it does not reset. This prevents response bodies from being logged in subsequent API calls, leading to inconsistent network logs.
Additional Information:
Issue appears when: Multiple API calls are made in quick succession, potentially involving file downloads.
Relevant code section: The handling of the isFileDownload flag inside InstabugOkhttpInterceptor.
Instabug integration code
Make sure to remove your app token.
SDK Version
13.4.1
Android Version
15
Device Model
Samsung S23
[Optional] Project That Reproduces the Issue
The text was updated successfully, but these errors were encountered:
Steps to Reproduce the Problem
There is a issue in the InstabugOkhttpInterceptor class of the Instabug Android SDK. The isFileDownload flag, used to determine if an API call response body should be logged, remains true across multiple API calls. This results in inconsistent logging of the response body, especially for file download APIs, where sometimes the response body is not captured.
Flag in Instabug library codebase
Missing body from the response (Instabug dashboard screenshot)
Expected Result of response (Instabug dashboard screenshot)
Expected Behavior
Each API call's response body should be logged consistently, with the isFileDownload flag properly resetting between API calls.
Actual Behavior
Once the isFileDownload flag is set to true for a file download API call, it does not reset. This prevents response bodies from being logged in subsequent API calls, leading to inconsistent network logs.
Additional Information:
Issue appears when: Multiple API calls are made in quick succession, potentially involving file downloads.
Relevant code section: The handling of the isFileDownload flag inside InstabugOkhttpInterceptor.
Instabug integration code
Make sure to remove your app token.
SDK Version
13.4.1
Android Version
15
Device Model
Samsung S23
[Optional] Project That Reproduces the Issue
The text was updated successfully, but these errors were encountered: