1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-06-10 18:50:22 +00:00

feat(debug): add viya debug log parser - parse JSON from inline blob

This commit is contained in:
mulahasanovic
2026-05-13 14:09:47 +02:00
parent a691500910
commit 4cae9b5472
4 changed files with 69 additions and 5 deletions
+9 -5
View File
@@ -16,6 +16,7 @@ import { SASViyaApiClient } from '../SASViyaApiClient'
import {
isRelativePath,
parseSasViyaDebugResponse,
parseSasViyaLogDebugResponse,
appendExtraResponseAttributes,
parseWeboutResponse,
getFormData,
@@ -188,11 +189,14 @@ export class WebJobExecutor extends BaseJobExecutor {
if (config.debug) {
switch (this.serverType) {
case ServerType.SasViya:
jsonResponse = await parseSasViyaDebugResponse(
res.result,
this.requestClient,
this.serverUrl
)
jsonResponse =
config.useComputeApi === null && config.runAsTask === true
? await parseSasViyaLogDebugResponse(res.result)
: await parseSasViyaDebugResponse(
res.result,
this.requestClient,
this.serverUrl
)
break
case ServerType.Sas9:
jsonResponse =