Skip to content

Commit c189b2b

Browse files
Merge remote-tracking branch 'origin/dev' into feat/support-capture-client-error-in-xhr-requests
# Conflicts: # src/utils/XhrNetworkInterceptor.ts # test/utils/XhrNetworkInterceptor.spec.ts
2 parents b1424be + a8c9c71 commit c189b2b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
- Add support for Expo Router navigation tracking ([#1270](https://github.com/Instabug/Instabug-React-Native/pull/1270)).
88
- Enhance the network interceptor to capture more client error messages ([#1257](https://github.com/Instabug/Instabug-React-Native/pull/1257)).
99

10+
### Fixed
11+
12+
- Fix APM network logging on iOS when the response body is missing or empty. ([#1273](https://github.com/Instabug/Instabug-React-Native/pull/1273)).
13+
1014
## [13.3.0](https://github.com/Instabug/Instabug-React-Native/compare/v13.2.0...v13.3.0) (August 4, 2024)
1115

1216
### Added

src/utils/XhrNetworkInterceptor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ export default {
151151

152152
// @ts-ignore
153153
const _response = this._response;
154+
cloneNetwork.requestBody =
155+
typeof _response === 'string' ? _response : JSON.stringify(_response);
156+
cloneNetwork.responseBody = '';
157+
154158
// Detect a more descriptive error message.
155159
if (typeof _response === 'string' && _response.length > 0) {
156160
cloneNetwork.errorDomain = _response;

0 commit comments

Comments
 (0)