We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In case the RMQ connection is down, the health indicator will be displayed as "down" but the health check is still healthy.
Given the following health check:
return this.health.check([ () => this.disk.checkStorage('disk', { path: '/', thresholdPercent: 0.5 }), () => this.microservice.pingCheck('tcp', { transport: Transport.RMQ, options: { urls: ['amqp://localhost:5672'], queue: 'cats_queue', queueOptions: { durable: false, }, }, }), ]);
In case RMQ is down the health check will still be seen as healthy.
No response
It should be unhealthy
8.1.0
8.x.x
16.x.x
The text was updated successfully, but these errors were encountered:
Can be fixed by adding the following lines to the catch-clause of MicroserviceHealthIndicator.pingCheck.
catch
MicroserviceHealthIndicator.pingCheck
throw new HealthCheckError( err, this.getStatus(key, false, { message: err }), }
Sorry, something went wrong.
@BrunnerLivio Are you planning to implement this fix? If not let me know and I can put up a PR with your suggested change.
da3f6c0
No branches or pull requests
Is there an existing issue for this?
Current behavior
In case the RMQ connection is down, the health indicator will be displayed as "down" but the health check is still healthy.
Minimum reproduction code
Given the following health check:
In case RMQ is down the health check will still be seen as healthy.
Steps to reproduce
No response
Expected behavior
It should be unhealthy
Package version
8.1.0
NestJS version
8.x.x
Node.js version
16.x.x
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: