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 <wuwen...@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 {