Closed rtkkroland closed 5 years ago
What version of botocore are you using? I'm not able to replicate with the latest version.
This is running inside a Lambda in AWS, Python 2.7 with just a "import boto3"
I would highly recommend vending your own copy of botocore along with your deployment package so you can control the version. Is your environment modified in any way or are you using a blank template? The version in lambda right now should be fine, but you could have an old model hanging around in ~/.aws/models or wherever you have the AWS_DATA_PATH
configured.
It's pulling from S3 and you are correct, I am including my own boto3: 1.9.92
Closing out old issues that are likely resolved now that the closing soon bot has been added. Let us know if updating this did not fix it for you, I suspect that it would.
Reproduction
Send the following to put_bot() lex-model client:
The following error is generated:
The documentation https://docs.aws.amazon.com/lex/latest/dg/API_Prompt.html#lex-Type-Prompt-responseCard says the responseCard is not required (and is not in the json), yet it still fails because it is 0 length.
If it must be length 1, then it should be marked as required.
Adding
responseCard: ''
to confirmationPrompt and abortStatement causes the exact same error (now expected since included but 0 length).Adding
responseCard: 'This is the response card'
allows the put_bot to succeed.