1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 04:50:06 +00:00

fix: double parsing issue in sas9 debug mode fixed

This commit is contained in:
2021-08-18 00:05:52 +05:00
parent 8464e506e0
commit 63e220c5be
2 changed files with 13 additions and 16 deletions

View File

@@ -429,13 +429,7 @@ export class RequestClient implements HttpClient {
}
} catch {
try {
const weboutResponse = parseWeboutResponse(response.data)
if (weboutResponse === '') {
throw new Error('Valid JSON could not be extracted from response.')
}
const jsonResponse = getValidJson(weboutResponse)
parsedResponse = jsonResponse
parsedResponse = JSON.parse(parseWeboutResponse(response.data))
} catch {
parsedResponse = response.data
}