From 28c8ebfc6503ab3195a6a7c896810acac7ffa47d Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Thu, 16 Sep 2021 14:58:18 +0200 Subject: [PATCH] fix: viya debug response null due to wrong content-type --- src/utils/parseViyaDebugResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/parseViyaDebugResponse.ts b/src/utils/parseViyaDebugResponse.ts index b0227f2..d3d3e6e 100644 --- a/src/utils/parseViyaDebugResponse.ts +++ b/src/utils/parseViyaDebugResponse.ts @@ -25,6 +25,6 @@ export const parseSasViyaDebugResponse = async ( } return requestClient - .get(serverUrl + jsonUrl, undefined) + .get(serverUrl + jsonUrl, undefined, 'text/plain') .then((res: any) => getValidJson(res.result)) }