awsgi
awsgi copied to clipboard
A WSGI gateway for the AWS API Gateway/Lambda proxy integration
The new format for HTTP payload (v2.0), nests the fields for the request method and path inside the requestContext.http field causing the lambda instance to fail with KeyErrors when accessing...
When lambdas are behind an ALB instead of API gateway, path and query parameters don't get unquoted. (example issue here https://github.com/dougmoscrop/serverless-http/issues/74) I fixed this for myself with: ```python def lambda_handler(event,...
Did a bit of cherry-picking. Includes and supercedes: - https://github.com/slank/awsgi/pull/63 - https://github.com/slank/awsgi/pull/60 - https://github.com/slank/awsgi/pull/58 - https://github.com/slank/awsgi/pull/56 Additionally fixes https://github.com/slank/awsgi/issues/19
In "use_binary_response", the header 'Content-Type' is read; however, HTTP headers are case insensitive (it fails in my case). Can be fixed with something like this: ``` content_type = None for...
I'd like to humbly acknowledge that I have not actively maintained this project for some time. I don't expect my time commitments to change any time soon, so I'd like...
``` @app.route(BASE_ROUTE, methods=['GET']) def hello_world(): # event=request.environ['event'] print('--hello--') # print(event) return jsonify(message="hello world") def handler(event, context): print('---event--') print(event) print('---context--') print(context) return awsgi.response(app, event, context) ``` Above is my code structure,...
Hello everyone, I am getting errors from my code below: output = BytesIO() writer = pd.ExcelWriter(output, engine='xlsxwriter') df.to_excel(writer, startrow = 0, merge_cells = False, sheet_name = "results", index=False) workbook =...
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
Hello, This package works fine when I create Rest API for the Lambda function by using Amazon API Gateway or AWS SAM, but not with Http API type . It...
Some WSGI applications expect that the path is unquoted before receiving it. Discovered while working with @jpluscplusm.