Skip to content

The response body isn't reported on an failed request when swiftAsyncUrlSessionSupport flag is turned on #316

Open
@markgravity

Description

Description

When the swiftAsyncUrlSessionSupport feature flag is turned on, NewRelic stops showing the Response on a failed request.
CleanShot 2024-10-04 at 08 44 33

Steps to Reproduce

  • Turn on swiftAsyncUrlSessionSupport
NewRelic.enableFeatures([
.NRFeatureFlag_SwiftAsyncURLSessionSupport,
.NRFeatureFlag_RequestErrorEvents,
.NRFeatureFlag_HttpResponseBodyCapture
])
  • Make a failed API request with a response data
  • Check the log on the HTTP Errors tab for the new tracked request

Expected Behavior

The Response data should show up instead of show this error:
CleanShot 2024-10-04 at 08 52 14

Relevant Logs / Console output

n/a

Your Environment

  • iOS Version: 18.0
  • Device: iPhone 12
  • SDK Version: 7.5.2

Additional context

n/a

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions