diff --git a/packages/health-check/src/checks/extended.js b/packages/health-check/src/checks/extended.js index 97698806..c844bd37 100644 --- a/packages/health-check/src/checks/extended.js +++ b/packages/health-check/src/checks/extended.js @@ -109,7 +109,7 @@ async function hnsVerification(done, expected) { const details = { name: expected.name, hns: expected.hns }; try { - const portalDomain = `${process.env.SKYNET_PORTAL_API}`; + const portalDomain = `${process.env.SKYNET_PORTAL_API}`.replace("https://", ""); const query = `https://${expected.hns}.hns.${portalDomain}`; const response = await got(query); const entry = { ...details, up: true, statusCode: response.statusCode, time: calculateElapsedTime(time) };