You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing "create an action group" for a bedrock agent that can call a lambda function. Creating this action group calls for having an OpenAPI schema which defines the function endpoints, required arguments, and the returns.
However, I'm seeing the following error
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
[ERROR] KeyError: 'requestBody'
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 97, in lambda_handler
internal_id = get_named_property(event, "internalId")
File "/var/task/lambda_function.py", line 15, in get_named_property
event['requestBody']['content']['application/json']['properties']
Can someone please look into this?
The text was updated successfully, but these errors were encountered:
Hi,
I'm testing "create an action group" for a bedrock agent that can call a lambda function. Creating this action group calls for having an OpenAPI schema which defines the function endpoints, required arguments, and the returns.
However, I'm seeing the following error
Can someone please look into this?
The text was updated successfully, but these errors were encountered: