flask-lambda icon indicating copy to clipboard operation
flask-lambda copied to clipboard

Python module to make Flask compatible with AWS Lambda for creating RESTful applications

Results 11 flask-lambda issues
Sort by recently updated
recently updated
newest added
trafficstars

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 ![image](https://user-images.githubusercontent.com/5445491/103589515-cadebf80-4ea8-11eb-853c-71ec5e7125a6.png) I get an error ![image](https://user-images.githubusercontent.com/5445491/103589584-f1045f80-4ea8-11eb-8e75-d8ae4a5cf821.png) I logged out the event as json and found that headers was null ![image](https://user-images.githubusercontent.com/5445491/103589610-05485c80-4ea9-11eb-8958-250d021764c4.png) 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.