From f7a9b0cbb6a7496ac224430524e9549595861b59 Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Sat, 8 Aug 2020 14:26:09 +0100 Subject: [PATCH] fix(compute-api): ignore 404s when requesting webout content --- src/SASViyaApiClient.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 5156a44..8e18f61 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -304,12 +304,14 @@ export class SASViyaApiClient { `${this.serverUrl}${resultLink}`, { headers }, "text" - ); + ).catch((e) => ({ + result: JSON.stringify(e), + })); } if (true && logLink) { log = await this.request( - `${this.serverUrl}${logLink.href}/content`, + `${this.serverUrl}${logLink.href}/content?limit=10000`, { headers, }