From 4b5034e17b3ffbddcfcc12300383dad2e2ca7a25 Mon Sep 17 00:00:00 2001 From: ABC <79597906+ABCxFF@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:27:55 -0400 Subject: [PATCH 1/2] fix(sdks/runtime): RVT-3805 / #982 --- sdks/runtime/typescript/src/core/fetcher/Fetcher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdks/runtime/typescript/src/core/fetcher/Fetcher.ts b/sdks/runtime/typescript/src/core/fetcher/Fetcher.ts index 19de5d475e..a43618c45b 100644 --- a/sdks/runtime/typescript/src/core/fetcher/Fetcher.ts +++ b/sdks/runtime/typescript/src/core/fetcher/Fetcher.ts @@ -73,15 +73,15 @@ async function fetcherImpl(args: Fetcher.Args): Promise => { const controller = new AbortController(); let abortId = undefined; if (args.timeoutMs != null) { abortId = setTimeout(() => controller.abort(), args.timeoutMs); } - const response = await fetchFn(url, { + + // We assume here that the environment is providing fetch functionality + const response = await fetch(url, { method: args.method, headers, body, From d36e86f9b731b575a1699e08463e0d15fa3c31e1 Mon Sep 17 00:00:00 2001 From: ABC <79597906+ABCxFF@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:33:56 -0400 Subject: [PATCH 2/2] fix(sdks/full): RVT-3805 / #982 --- sdks/full/typescript/src/core/fetcher/Fetcher.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sdks/full/typescript/src/core/fetcher/Fetcher.ts b/sdks/full/typescript/src/core/fetcher/Fetcher.ts index 19de5d475e..cb5ee9c1de 100644 --- a/sdks/full/typescript/src/core/fetcher/Fetcher.ts +++ b/sdks/full/typescript/src/core/fetcher/Fetcher.ts @@ -73,15 +73,13 @@ async function fetcherImpl(args: Fetcher.Args): Promise => { const controller = new AbortController(); let abortId = undefined; if (args.timeoutMs != null) { abortId = setTimeout(() => controller.abort(), args.timeoutMs); } - const response = await fetchFn(url, { + const response = await fetch(url, { method: args.method, headers, body,