You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, fill the following sections to help us fix the issue
What happened:
Health check doesn't work due to transitive dependency issue:
[16:28:09] fail: Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService[104]
Health check elasticsearch threw an unhandled exception after 2.8406ms
System.TypeLoadException: Could not load type 'Elastic.Transport.TransportConfigurationBase`1' from assembly 'Elastic.Transport, Version=0.0.0.0, Culture=neutral, PublicKeyToken=069ca2728db333c1'.
at HealthChecks.Elasticsearch.ElasticsearchHealthCheck.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at HealthChecks.Elasticsearch.ElasticsearchHealthCheck.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)
at Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService.RunCheckAsync(HealthCheckRegistration registration, CancellationToken cancellationToken)
This happens because we have a dependency on Elastic.Clients.Elasticsearch:8.16.3 which resolves transitive dependency to Elastic.Transport:0.5.7
What you expected to happen:
Health check should work as expected.
How to reproduce it (as minimally and precisely as possible):
Add to a project that references Elastic.Clients.Elasticsearch:8.16.3 and AspNetCore.HealthChecks.Elasticsearch:9.0.0 at the same time.
The text was updated successfully, but these errors were encountered:
NikiforovAll
changed the title
Health cehck fails for AspNetCore.HealthChecks.Elasticsearch:9.0.0
Health check fails for AspNetCore.HealthChecks.Elasticsearch:9.0.0
Dec 30, 2024
Please, fill the following sections to help us fix the issue
What happened:
Health check doesn't work due to transitive dependency issue:
This happens because we have a dependency on Elastic.Clients.Elasticsearch:8.16.3 which resolves transitive dependency to Elastic.Transport:0.5.7
What you expected to happen:
Health check should work as expected.
How to reproduce it (as minimally and precisely as possible):
Add to a project that references Elastic.Clients.Elasticsearch:8.16.3 and AspNetCore.HealthChecks.Elasticsearch:9.0.0 at the same time.
The text was updated successfully, but these errors were encountered: