-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SerializationError using Lex v1 bot from aws-sdk-go-1.33.21 onwards #4258
Comments
It looks like this was already reported way back in April 2021 (!) - see issue #3847 To be clear, lexruntimeservice PostContent always returns an error when the input is audio or text and the response contains a
This can't be unmarshalled to
|
Thanks for taking the time to create this issue I've created #4269 to address this issue. Though it will require a breaking change to the API model for this parameter. We're choosing to make a breaking change here because the API never could work with the SDK given the JSONValue implementation. |
|
=== ### Service Client Updates * `service/budgets`: Updates service API and documentation * Adds support for auto-adjusting budgets, a new budget method alongside fixed and planned. Auto-adjusting budgets introduces new metadata to configure a budget limit baseline using a historical lookback average or current period forecast. * `service/ce`: Updates service API * `service/ec2`: Updates service API and documentation * Documentation updates for EC2. * `service/glue`: Updates service API and documentation * Support for optimistic locking in UpdateTable * `service/ssm`: Updates service documentation * Assorted ticket fixes and updates for AWS Systems Manager. ### SDK Features * `codegen`: Updates the SDK's code generation to stop supporting new API modeled JSONValue parameters. The SDK's JSONValue type is only compatible with JSON documents with a top level JSON Object. JSON Lists, Strings, Scalars, are not compatible. This prevents JSON Value working with some APIs such as Amazon Lex Runtime Service's operations. * Related to [#4264](#4264) and [#4258](#4258) ### SDK Bugs * `service/lexruntimeservice`: Introduces a breaking change for following parameters from a JSONValue to string type, because the SDKs JSONValue is not compatible with JSON documents of lists. * PostContentInput.ActiveContexts * PutContentOutput.AlternativeIntents * PutContentOutput.ActiveContexts * PutSessionOutput.ActiveContexts * Fixes [#4258](#4258)
Release v1.43.0 (2022-02-16) === ### Service Client Updates * `service/budgets`: Updates service API and documentation * Adds support for auto-adjusting budgets, a new budget method alongside fixed and planned. Auto-adjusting budgets introduces new metadata to configure a budget limit baseline using a historical lookback average or current period forecast. * `service/ce`: Updates service API * `service/ec2`: Updates service API and documentation * Documentation updates for EC2. * `service/glue`: Updates service API and documentation * Support for optimistic locking in UpdateTable * `service/ssm`: Updates service documentation * Assorted ticket fixes and updates for AWS Systems Manager. ### SDK Features * `codegen`: Updates the SDK's code generation to stop supporting new API modeled JSONValue parameters. The SDK's JSONValue type is only compatible with JSON documents with a top level JSON Object. JSON Lists, Strings, Scalars, are not compatible. This prevents JSON Value working with some APIs such as Amazon Lex Runtime Service's operations. * Related to [#4264](#4264) and [#4258](#4258) ### SDK Bugs * `service/lexruntimeservice`: Introduces a breaking change for following parameters from a JSONValue to string type, because the SDKs JSONValue is not compatible with JSON documents of lists. * PostContentInput.ActiveContexts * PutContentOutput.AlternativeIntents * PutContentOutput.ActiveContexts * PutSessionOutput.ActiveContexts * Fixes [#4258](#4258)
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Create a lex bot using the "OrderFlowers" example
Version of AWS SDK for Go?
1.33.21 up to 1.42.41
Version of Go (
go version
)?go version go1.17.4 linux/amd64
To Reproduce (observed behavior)
I don't have a standalone example, but could create one if required. There's nothing fancy here, just:
Now send an audio stream and say "I'd like to book a room"
aws-sdk-1.33.20 will return no error.
aws-sdk-1.33.21 and later req.Send will return:
Expected behavior
No error
Additional context
I've verified that merely changing
github.com/aws/aws-sdk-go v1.33.20
tojackfan.us.kg/aws/aws-sdk-go v1.33.21
in go.mod is sufficient to trigger the bug, so it seems likely that this is a bug that was introduced in to the SDK in v1.33.21.The text was updated successfully, but these errors were encountered: