switch status api to http as well

This commit is contained in:
Girish Ramakrishnan
2021-12-17 13:39:06 -08:00
parent d37652d362
commit 7aded4aed7
+1 -2
View File
@@ -293,8 +293,7 @@ async function containerStatus(containerName, tokenEnvName) {
if (error && (error.reason === BoxError.NOT_FOUND || error.reason === BoxError.INACTIVE)) return { status: exports.SERVICE_STATUS_STOPPED };
if (error) throw error;
const [networkError, response] = await safe(superagent.get(`https://${addonDetails.ip}:3000/healthcheck?access_token=${addonDetails.token}`)
.disableTLSCerts()
const [networkError, response] = await safe(superagent.get(`http://${addonDetails.ip}:3000/healthcheck?access_token=${addonDetails.token}`)
.timeout(20000)
.ok(() => true));