You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by qi...@apache.org on 2021/09/22 13:48:33 UTC

[skywalking-client-js] branch master updated: fix apache/skywalking#7765 (#70)

This is an automated email from the ASF dual-hosted git repository.

qiuxiafan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git


The following commit(s) were added to refs/heads/master by this push:
     new ddc81ba  fix apache/skywalking#7765 (#70)
ddc81ba is described below

commit ddc81bae9bcac2b5f03bfcde6627e645aba4dc68
Author: wuwen <wu...@aliyun.com>
AuthorDate: Wed Sep 22 21:48:27 2021 +0800

    fix apache/skywalking#7765 (#70)
---
 src/trace/interceptors/fetch.ts | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/trace/interceptors/fetch.ts b/src/trace/interceptors/fetch.ts
index 802a232..6dc39fa 100644
--- a/src/trace/interceptors/fetch.ts
+++ b/src/trace/interceptors/fetch.ts
@@ -98,11 +98,7 @@ export default function windowFetch(options: CustomOptionsType, segments: Segmen
     try {
       response = await originFetch(...args);
 
-      return response
-        .clone()
-        .json()
-        .then((body: any) => body)
-        .catch((err: any) => err);
+      return response.clone();
     } catch (e) {
       throw e;
     } finally {