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 using the C++ framework to create a lambda that's using a Lambda Function URL.
When there is an error (i.e. invocation_response::failure) , the HTTP response is always a "Internal Server Error".
This seems to be because the response needs to be in a format as detailed in https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html - which includes the "statusCode" etc.
Ideally, invocation_response::failure should at least set the "body" in the application/json response.
As a workaround, crafting the appropriate error payload using invocation_response::success works.
The text was updated successfully, but these errors were encountered:
I'm using the C++ framework to create a lambda that's using a Lambda Function URL.
When there is an error (i.e.
invocation_response::failure
) , the HTTP response is always a "Internal Server Error".This seems to be because the response needs to be in a format as detailed in https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html - which includes the "statusCode" etc.
Ideally,
invocation_response::failure
should at least set the "body" in the application/json response.As a workaround, crafting the appropriate error payload using invocation_response::success works.
The text was updated successfully, but these errors were encountered: