Instabug / Instabug-Android

In-app feedback and bug reporting tool for apps.
https://instabug.com/
Other
188 stars 38 forks source link

InstabugNetworkLog Error: "Response body exceeded limit" #426

Closed angelina-andronova-xapo closed 2 years ago

angelina-andronova-xapo commented 2 years ago

Steps to Reproduce the Problem

Shake the device and check logs.

Expected Behavior

The Istabug Network log will show Request Body

Actual Behavior

The Istabug Network log does not show Request Body. Instead there is an error InstabugNetworkLog Error: "Response body exceeded limit" even for empty JSON body and for GET requests. Response body is shown correctly. image

Instabug integration code

    Instabug.Builder(application, KEY_INSTABUG)
            .setViewHierarchyState(Feature.State.ENABLED)
            .setInvocationEvents(reportingGesture)
            .setConsoleLogState(Feature.State.ENABLED)
            .build()

SDK Version

Android SDK version 11.0.0 Dependencies:

com.instabug.library:instabug:$versions.instabug
com.instabug.library:instabug-with-okhttp-interceptor:$versions.instabug

Android Version

OS Level 30

Device Model

Samsung Galaxy A71 (SM-A715F)

[Optional] Project That Reproduces the Issue

MohamedHefny commented 2 years ago

Hey @angelina-andronova-xapo, Thanks for reporting this, we will check it and reply back ASAP.

angelina-andronova-xapo commented 2 years ago

@MohamedHefny Thanks! I forgot to mention that we recently moved BE calls to KMM/Ktor, so maybe it is related to this. Is Instabug KMM-compatible? We are using Ktor (in KMM) with a preconfigured Okhttp client, that has the InstabugOkhttpInterceptor attached.

nguyentuonglong commented 2 years ago

hi @angelina-andronova-xapo I'm am using InstabugOkhttpInterceptor in KMM too, I did follow the document here: https://docs.instabug.com/docs/android-logging#logging-okhttp-requests, but no Network Logs have been posted

marcorighini commented 2 years ago

@MohamedHefny Do you have some updates? This is impacting the usefulness of the product

IslamMohamady commented 2 years ago

Hi @angelina-andronova-xapo Can you please send all the details you mentioned to contactus@instabug.com so that we can efficiently assist you with this issue? Thanks 🙏