Instabug / Instabug-iOS

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

Include the response body in the network logs when using Swift Concurrency #487

Closed xmollv closed 3 months ago

xmollv commented 3 months ago

This is a known issue related to #482. See comment: https://github.com/Instabug/Instabug-iOS/issues/482#issuecomment-1946063375.

Steps to Reproduce the Problem

  1. Perform any network request using Swift Concurrency (async/await)
  2. Trigger a bug report and submit it to Instabug
  3. Observe how the network request is properly logged (when using Instabug 12.9.0 or newer), but the response body is missing
image

Expected Behavior

We're able to inspect the response body the server gave us.

Actual Behavior

Only the response header's are logged, the body is missing.

Instabug integration code

287971155-20e41fae-9429-4259-8a2e-b2f0d8a3fd9d

SDK Version

12.9.0

iOS Version

iOS 17.4

Device Model

iPhone 15 Pro

xmollv commented 3 months ago

@ahmedsalah196 just a ping because this ticket doesn't seem to have been triaged yet!

ahmedsalah196 commented 3 months ago

@xmollv We don't have plans to support this at the current time. Will state this in our public docs soon

xmollv commented 3 months ago

@ahmedsalah196 is not going to be supported because there's no way to automatically capture responses? I'm more than happy to decode the response myself and include them on Instabug manually. Is there a possibility to add an API on Instabug's SDK to achieve that?

ahmedsalah196 commented 3 months ago

@xmollv I will check this with our product team and get back to you

shankha-archives commented 1 month ago

When is this going to resolve ??