Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

healthcheck Failed for succesful host request #195

Open
brunolnetto opened this issue Oct 28, 2022 · 0 comments
Open

healthcheck Failed for succesful host request #195

brunolnetto opened this issue Oct 28, 2022 · 0 comments

Comments

@brunolnetto
Copy link

brunolnetto commented Oct 28, 2022

Hi,

I develop in NodeJS. I would like to assign the /healthcheck on status-monitor initialization. The library provides a clear way to achieve it. However, even though I follow the given instructions, the route /status still gives the response "FAILED", even though the app is healthy. The healthCheck controller as well as library import and router are below.

import express from 'express';
export const router = express.Router();

export const healthCheck = async (req, res, next) => {
  log('debug', 'healthCheck controller called');

  res.status = 200;
  
  res.send({
    message: 'Sappio server running',
    version: pkg.version,
  })
}

router.get(
  '/healthcheck', 
  healthCheck
);

Do you know the reason for this non-working scenario?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant