Skip to content

Commit 6e8256e

Browse files
committed
fix: script timeout should be displayed
1 parent d9b0768 commit 6e8256e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/insomnia/src/ui/routes/request.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,19 @@ export const sendActionImplementation = async (options: {
702702
iterationCount,
703703
runtime,
704704
});
705+
if ('error' in postMutatedContext && postMutatedContext.error.includes("Executing script timeout")) {
706+
throw {
707+
response: await responseTransform(
708+
response,
709+
requestData.activeEnvironmentId,
710+
renderedRequest,
711+
renderedResult.context,
712+
),
713+
maxHistoryResponses: requestData.settings.maxHistoryResponses,
714+
requestMeta,
715+
error: postMutatedContext.error,
716+
};
717+
}
705718

706719
window.main.completeExecutionStep({ requestId });
707720

0 commit comments

Comments
 (0)