Skip to content

Commit 5fca1bc

Browse files
Stringify the response in case of a client network error
1 parent d39165f commit 5fca1bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/XhrNetworkInterceptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const XHRInterceptor = {
111111
cloneNetwork.errorCode = 0;
112112
cloneNetwork.errorDomain = 'ClientError';
113113

114-
cloneNetwork.requestBody = this._response;
114+
cloneNetwork.requestBody = typeof this._response === "string" ? this._response : JSON.stringify(this._response);
115115
cloneNetwork.responseBody = null;
116116
}
117117
if (onDoneCallback) {

0 commit comments

Comments
 (0)