From 545b575b2ec5e88c5e293368f1f931985da4f539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E9=A3=8E?= Date: Fri, 31 Dec 2021 09:50:03 +0800 Subject: [PATCH] fix: fix async invoke withour stateul invoke id error --- src/lib/remote-invoke.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/remote-invoke.ts b/src/lib/remote-invoke.ts index f6f66a0..2008ef5 100644 --- a/src/lib/remote-invoke.ts +++ b/src/lib/remote-invoke.ts @@ -95,7 +95,7 @@ export default class RemoteInvoke { const { headers } = await this.fcClient.invokeFunction(serviceName, functionName, event, { 'X-Fc-Invocation-Code-Version': 'Latest', 'X-Fc-Invocation-Type': invocationType, - 'X-Fc-Stateful-Async-Invocation-Id': statefulAsyncInvocationId, + 'X-Fc-Stateful-Async-Invocation-Id': statefulAsyncInvocationId || "", }, qualifier); const rId = headers['x-fc-request-id'];