Skip to content
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

Response contain status code and headers #239

Closed
athioune opened this issue Feb 16, 2023 · 2 comments
Closed

Response contain status code and headers #239

athioune opened this issue Feb 16, 2023 · 2 comments

Comments

@athioune
Copy link

athioune commented Feb 16, 2023

Hi everyone,

I'm using the library with AWS Lambda on a Flask application and I have a bug
When I'm returning a json (By using return make_response(documentJson, 200)), the return body that I have on Postman contains also the status code and the headers:
image

Do you know how to only return the content of the body ?

Thanks !

@unkwnownGriot
Copy link

have you tried return make_response(documentJson, 200)['body']?

@athioune
Copy link
Author

Just fixed the problem by adding
image
in the serverless events trigger :)

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants