From ece3b45f59278e209f18dc3cc29a0d2e26f2d4d7 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Wed, 23 Jul 2025 07:43:19 +0000 Subject: [PATCH] fix: disable health check failing for blocked issues on non-hayd.uk instances until there is a proper VPN/pod restart solution --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d8dcecb..4990053 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import { ConfigureController, ManifestController, StreamController } from './con import { BlockedError } from './error'; import { createExtractors, ExtractorRegistry } from './extractor'; import { createSources } from './source'; -import { contextFromRequestAndResponse, envGet, envIsProd, Fetcher, StreamResolver } from './utils'; +import { contextFromRequestAndResponse, envGet, envIsProd, Fetcher, isHaydukInstance, StreamResolver } from './utils'; console.log = console.warn = console.error = console.info = console.debug = () => { /* disable in favor of logger */ }; @@ -88,7 +88,7 @@ addon.get('/health', async (req: Request, res: Response) => { }); await Promise.all(fetchPromises); - if (blockedCount > 0) { + if (isHaydukInstance(req) && blockedCount > 0) { res.status(503).json({ status: 'blocked' }); } else if (errorCount === urls.length) { res.status(503).json({ status: 'error' });