flask-lambda
flask-lambda copied to clipboard
Python module to make Flask compatible with AWS Lambda for creating RESTful applications
request object instead of string as body inside json data. I just added json.dumps when we accept body and json.loads when we return body
When calling request.json in DELETE or POST calls I receive the following stack trace error: ``` Traceback (most recent call last): File "/var/lang/lib/python3.8/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request()...
I have discovered `BaseRequest` class removed from werkzeug later 2.1.0 version. [Related discussion here.](https://github.com/pallets/werkzeug/issues/2360#issuecomment-1081009270) The package works fine in `2.0.3` version as well as tested. However, would be great if...
Proposed fix for #8 because we run into the same issue: Add default values for HTTP_X_FORWARDED* headers. Needed e.g. when API Gateway is configured with a private endpoint.
[ERROR] KeyError: 'SERVER_NAME'Traceback (most recent call last): File "/var/task/flask_lambda.py", line 97, in __call__ return super(FlaskLambda, self).__call__(event, context) File "/var/task/flask/app.py", line 2464, in __call__ return self.wsgi_app(environ, start_response) File "/var/task/flask/app.py", line 2442,...
While calling from application ELB, always getting 502 gateway error
When clicking the test button in api gateway  I get an error  I logged out the event as json and found that headers was null  This commit...
Original code didn't work if the API gateway provides binary data and accepted binary data only. This PR supports both - binary and plaintext inputs and outputs.