From 5361bca4b2fc5d6f242b8d76d7d84a94ea7d85a0 Mon Sep 17 00:00:00 2001 From: rare-magma Date: Sat, 27 Jul 2024 11:42:34 +0200 Subject: [PATCH] fix: healthcheck script Signed-off-by: rare-magma --- docker/healthcheck.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/healthcheck.js b/docker/healthcheck.js index 3e920a34e..a424254f3 100644 --- a/docker/healthcheck.js +++ b/docker/healthcheck.js @@ -1,10 +1,9 @@ -import { request } from "node:http"; +const request = require("node:http"); const options = { host : "localhost", path: "/api/v1/health", port : "3333", - timeout : 2000 }; const healthCheck = request(options, (res) => { @@ -18,7 +17,7 @@ const healthCheck = request(options, (res) => { }); healthCheck.on('error', (err) => { - console.error(err); + console.error(err.message); process.exit(1); });