From 6a9dde50fa29967374ada4cf70f572aca2e87533 Mon Sep 17 00:00:00 2001 From: adrieljss Date: Tue, 11 Mar 2025 23:17:33 +0800 Subject: [PATCH] fix: remove close after error and inject rid to invoke --- plugins/http/guest-js/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/http/guest-js/index.ts b/plugins/http/guest-js/index.ts index 424c3871..6b48e730 100644 --- a/plugins/http/guest-js/index.ts +++ b/plugins/http/guest-js/index.ts @@ -193,7 +193,6 @@ export async function fetch( // close early if aborted if (signal?.aborted) { controller.error(ERROR_REQUEST_CANCELLED) - controller.close() return } @@ -214,10 +213,10 @@ export async function fetch( // run a non-blocking body stream fetch invoke('plugin:http|fetch_stream_body', { + rid, streamChannel }).catch((e) => { controller.error(e) - controller.close() }) } })