Skip to content

MissingMethodException: Method not found [DynamoDb] [AWSSDK.DynamoDBv2 V4] #2440

@IlyaAbramau

Description

@IlyaAbramau

What happened:
DynamoDb health check is failing with
System.MissingMethodException: Method not found: 'Void Amazon.DynamoDBv2.Model.ListTablesRequest.set_Limit(Int32)'. at HealthChecks.DynamoDb.DynamoDbHealthCheck.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken)

What you expected to happen:
DynamoDb health check is able to run successfully

How to reproduce it (as minimally and precisely as possible):
Use Latest AspNetCore.HealthChecks.DynamoDb and AWSSDK.DynamoDBv2 Version >= 4.0

Source code sample:

Anything else we need to know?: The Limit property in ListTablesRequest was changed from int -> Nullable<int>

Environment:

  • .NET Core version: 9.0
  • Healthchecks version: 9.0.0
  • Operative system: mac os
  • AWSSDK.DynamoDBv2 Version="4.0.3.1"
  • AspNetCore.HealthChecks.DynamoDb Version="9.0.0"

To fix the issue we need to update package AWSSDK.DynamoDBv to V4 in the Directory.Packages.props file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions