Xabaril / AspNetCore.Diagnostics.HealthChecks

Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Apache License 2.0
4.04k stars 791 forks source link

Throwing exception on check azure service queues/topics health #2089

Open muscandra opened 10 months ago

muscandra commented 10 months ago

Hello, We have .Net project which use Azure Service Bus queues and topics. We have defined some health checks for those but in the last time we got errors related to some of them with this error message: _"Health check "ourqueue" with status Unhealthy completed after 2988.7886ms with message 'null'", but the health check returns Healthy when they are checked separately.

Also, the request path seems to be the connected ping one from our service, and not the URI that we setup for the health endpoint.

On the exception message we got the line from this file, line 30: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/2824b09121fb66763e971eb3bea5c93a8164f7ce/src/HealthChecks.AzureServiceBus/AzureServiceBusTopicHealthCheck.cs#L26

Does anyone know what could be the issue?

Thanks.

brian-sqq commented 5 months ago

We are receiving the same exception running these health checks on a topic. We are fluctuating between periods of zero health check failures and bursts of several, all throwing this exception.

From a practical standpoint, our application has not thrown any service bus exceptions, and our end users are experiencing no issues. All the exceptions are all coming from these health checks.