Instabug-iOS icon indicating copy to clipboard operation
Instabug-iOS copied to clipboard

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

Open xmollv opened this issue 1 year ago • 6 comments

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 avatar Mar 18 '24 09:03 xmollv

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

xmollv avatar Mar 25 '24 16:03 xmollv

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

ahmedsalah196 avatar Mar 26 '24 09:03 ahmedsalah196

@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?

xmollv avatar Mar 26 '24 09:03 xmollv

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

ahmedsalah196 avatar Mar 26 '24 09:03 ahmedsalah196

When is this going to resolve ??

shankha-archives avatar May 24 '24 16:05 shankha-archives

@ahmedsalah196 @EyadHeikal Could we please reopen this ticket and add the 'Feature Request' label? Ignoring this sends a strong message about Instabug not being able to keep up with the latest technologies on iOS.

xmollv avatar Aug 16 '24 08:08 xmollv