From b125b347a73dfeef6ff0a9284858d6f4bd4a546e Mon Sep 17 00:00:00 2001 From: benStre Date: Wed, 24 Jan 2024 10:57:25 +0100 Subject: [PATCH] fix endpoint online state no header provided --- runtime/runtime.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/runtime.ts b/runtime/runtime.ts index 176efd7a..6b96faf5 100644 --- a/runtime/runtime.ts +++ b/runtime/runtime.ts @@ -1858,8 +1858,10 @@ export class Runtime { //throw e console.error(e[1]??e) const header = e[0]; - this.handleScopeError(header, e[1]); - this.updateEndpointOnlineState(header); + if (header) { + this.handleScopeError(header, e[1]); + this.updateEndpointOnlineState(header); + } return; }