Skip to content

Commit 3ef2031

Browse files
RUM-12441 Don't extract errors key in ResourcesHandler
1 parent e4bcbcf commit 3ef2031

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

DatadogRUM/Sources/Instrumentation/Resources/URLSessionRUMResourcesHandler.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,7 @@ internal final class URLSessionRUMResourcesHandler: DatadogURLSessionHandler, RU
191191
return nil
192192
}
193193

194-
// Extract only the errors array from the response
195-
guard let jsonObject = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
196-
let errors = jsonObject["errors"],
197-
let errorsData = try? JSONSerialization.data(withJSONObject: ["errors": errors]) else {
198-
return nil
199-
}
200-
201-
return errorsData
194+
return data
202195
}
203196
}
204197

0 commit comments

Comments
 (0)