From 08967cba648e201e66469005bda2a679503b9376 Mon Sep 17 00:00:00 2001 From: Nick-1234531 Date: Thu, 13 Nov 2025 17:51:39 +0530 Subject: [PATCH 1/3] changes to fallback to previous response --- package.json | 2 +- src/lib/server.ts | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 1e064d5..d238c69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lambdatest/smartui-cli", - "version": "4.1.42", + "version": "4.1.43", "description": "A command line interface (CLI) to run SmartUI tests on LambdaTest", "files": [ "dist/**/*" diff --git a/src/lib/server.ts b/src/lib/server.ts index 854f1fb..e15bef1 100644 --- a/src/lib/server.ts +++ b/src/lib/server.ts @@ -294,10 +294,8 @@ export default async (ctx: Context): Promise timeoutDuration) { replyCode = 202; - replyBody = { - error: 'Request timed out, Snapshot still processing', - data: lastExternalResponse.data - }; + replyBody = lastExternalResponse.data; + replyBody.error = 'Request timed out, Snapshot still processing'; return reply.code(replyCode).send(replyBody); } From 8e3bb8399d00afde5feae06c9ba82714a2e83156 Mon Sep 17 00:00:00 2001 From: Nick-1234531 Date: Thu, 13 Nov 2025 18:37:10 +0530 Subject: [PATCH 2/3] change for still processing --- src/lib/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server.ts b/src/lib/server.ts index e15bef1..a016856 100644 --- a/src/lib/server.ts +++ b/src/lib/server.ts @@ -314,7 +314,7 @@ export default async (ctx: Context): Promise timeoutDuration) { - replyCode = 202; + replyCode = 200; replyBody = lastExternalResponse.data; replyBody.error = 'Request timed out, Snapshot still processing'; return reply.code(replyCode).send(replyBody); From d0967721f23a52098b0d31eff574dbbac0c966d3 Mon Sep 17 00:00:00 2001 From: Nick-1234531 Date: Thu, 13 Nov 2025 18:41:20 +0530 Subject: [PATCH 3/3] revert --- src/lib/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server.ts b/src/lib/server.ts index a016856..e15bef1 100644 --- a/src/lib/server.ts +++ b/src/lib/server.ts @@ -314,7 +314,7 @@ export default async (ctx: Context): Promise timeoutDuration) { - replyCode = 200; + replyCode = 202; replyBody = lastExternalResponse.data; replyBody.error = 'Request timed out, Snapshot still processing'; return reply.code(replyCode).send(replyBody);