aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

Error in AWS SDK and Usage Guide for Content Moderation version 7

Open seantsangmk opened this issue 1 year ago • 0 comments

Describe the bug

I followed the instructions provided in the guide (https://docs.aws.amazon.com/rekognition/latest/dg/procedure-moderate-images.html#moderation-labels-update-sdk) to update the label mappings for Versions 6.1 to 7. However, this result in an error being displayed in CloudWatch.

Expected Behavior

interface DetectModerationLabelsRequest should include RequestedModelVersion

Current Behavior

cloudwatch log shows errors with UnexpectedParameter: Unexpected key 'RequestedModelVersion' found in params

Reproduction Steps

use sample code in https://d1m67pwji3rslw.cloudfront.net/guide/Guide_JavaScriptV2.pdf with [email protected]

Possible Solution

No response

Additional Information/Context

No response

SDK version used

2.1563.0

Environment details (OS name and version, etc.)

Windows 10 Version 22H2 (OS Build 19045.3930)

seantsangmk avatar Feb 22 '24 08:02 seantsangmk