AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

Upgrading to AWSSDK.S3 v4 breaks S3 HealthCheck

Open tbright92 opened this issue 6 months ago • 5 comments

Please, fill the following sections to help us fix the issue

What happened: After updating to the latest major version of AWSSDK.S3, my S3 HealthCheck is getting the following error:

System.MissingMethodException: Method not found: 'Void Amazon.S3.Model.ListObjectsRequest.set_MaxKeys(Int32)'.
   at HealthChecks.Aws.S3.S3HealthCheck.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at HealthChecks.Aws.S3.S3HealthCheck.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)
   at Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService.RunCheckAsync(HealthCheckRegistration registration, CancellationToken cancellationToken)

What you expected to happen: S3 HealthCheck is able to run successfully.

How to reproduce it (as minimally and precisely as possible): Updating to the latest version of AWSSDK.S3 and adding an S3 HealthCheck.

Source code sample:

Anything else we need to know?: I believe this is happening because v4 of AWSSDK changed the type of MaxKeys from Int32 to Nullable Int32.

Environment:

  • .NET Core version: .NET 9
  • Healthchecks version: 9.0.0
  • Operative system: Windows
  • Others:

tbright92 avatar May 30 '25 05:05 tbright92

Same here

barryguvenkaya avatar Jun 02 '25 05:06 barryguvenkaya

Facing the same problem.

ae-naltun avatar Jun 05 '25 03:06 ae-naltun

Hey! Just wondering if there’s an estimated timeline for when the changes in this PR might be merged? Thanks!

pokrz26 avatar Aug 25 '25 09:08 pokrz26

The DynamoDB health check produces a package downgrade build warning when upgrading to v4.0 of the .NET SDK because it references v3.7.300.7 of AWSSDK.DynamoDBv2, which requires AWSSDK.Core < 4.0.0.

Please merge and publish a new NuGet package based on AWSSDK V4 as soon as possible!

bill-poole avatar Sep 16 '25 07:09 bill-poole

It's been almost 6 months since I opened this issue, and 5 months since kharedev247 raised the PR for the fix. Is there a particular reason why the fix hasn't been merged in yet?

tbright92 avatar Nov 12 '25 15:11 tbright92