From 60fcf4b8b82741f17c2c49d0a9d97410ce50dae3 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 27 Jul 2020 18:59:32 +0200 Subject: [PATCH] fix healthcheck --- health-check/checks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/health-check/checks.js b/health-check/checks.js index 0ab96f81..8e29b3dc 100644 --- a/health-check/checks.js +++ b/health-check/checks.js @@ -5,7 +5,7 @@ async function uploadCheck(done) { const time = process.hrtime(); superagent - .post(`${process.env.PORTAL_URL}/skynet/skyfile`) + .post(`http://${process.env.PORTAL_URL}/skynet/skyfile`) .attach("file", "package.json", "package.json") .end((err, res) => { const statusCode = (res && res.statusCode) || (err && err.statusCode) || null; @@ -22,7 +22,7 @@ async function uploadCheck(done) { function downloadCheck(done) { const time = process.hrtime(); - superagent.get(`${process.env.PORTAL_URL}`).end((err, res) => { + superagent.get(`http://${process.env.PORTAL_URL}`).end((err, res) => { const statusCode = (res && res.statusCode) || (err && err.statusCode) || null; done({