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 sure this has been reported already because of the other Function returned an invalid response (must include one of: body, headers or statusCode in the response object) reason, but the real reason is showing up for me on the previous line,
statusCode must be a positive int
When you then check the code supplied by the blueprint, in the respond function, you'll see,
The problem is resolved and your function works as it's supposed to. Now, whether that's your bad or... the other awslabs' (the history says it's @sanathkr 's code) bad, I don't know! Because I'm using this, I decided to log the bug here. It might be a case where you guys maybe should try json.load statusCode, if it's a str and that code should also be returning ints instead, again I don't know!
The text was updated successfully, but these errors were encountered:
I'm sure this has been reported already because of the other
Function returned an invalid response (must include one of: body, headers or statusCode in the response object)
reason, but the real reason is showing up for me on the previous line,statusCode must be a positive int
When you then check the code supplied by the blueprint, in the
respond
function, you'll see,https://github.com/awslabs/serverless-application-model/blob/master/examples/apps/microservice-http-endpoint-python3/lambda_function.py#L13
If you change that function to,
The problem is resolved and your function works as it's supposed to. Now, whether that's your bad or... the other awslabs' (the history says it's @sanathkr 's code) bad, I don't know! Because I'm using this, I decided to log the bug here. It might be a case where you guys maybe should try
json.load
statusCode, if it's astr
and that code should also be returning ints instead, again I don't know!The text was updated successfully, but these errors were encountered: