Questions tagged [zappa]

Zappa is a Python tool to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway.

https://github.com/Miserlou/Zappa/#about

241 questions
6
votes
1 answer

How do I get an AWS Lambda Remaining time using Python and Zappa?

I'm using Flask and Zappa to deploy to AWS Lambda, but one of my tasks takes more than 300 seconds to execute so the lambda shuts down. I'd like to call another lambda before it happens to finish the work, is it possible to get the remaining time…
Fernando Freitas Alves
  • 3,709
  • 3
  • 26
  • 45
5
votes
1 answer

Failed to find library: libmysqlclient.so.18

I have flask API running on AWS lambda deployed using zappa. While instancing it's not able to find libmysqlclient.so.18 file which I believe consumes a lot of time. Error message in attached image Can someone please help? Thanks!
Naishav Mehta
  • 306
  • 1
  • 2
  • 14
5
votes
0 answers

AttributeError: module '__main__' has no attribute 'text_process'

Context i am deploying my ml model on lambda; after successfully deployment when i hit gateway URL i am getting 500 response and and logs are Traceback (most recent call last): File "/tmp/serverless-ml/flask/app.py", line 2292, in wsgi_app …
Mudaser Ali
  • 3,989
  • 3
  • 25
  • 27
5
votes
1 answer

How to invoke a @app.route function set up in zappa from outside using boto3?

I have a zappa lambda deployed at arn:aws:lambda:us-east-1:xxxxx:function:xx-xx-prod, which serves a route like so: @app.route('/test', methods=['POST']) def test(): response = app.response_class( response=get_jsonstr({'test': 'OK'}), …
kriss
  • 51
  • 5
5
votes
1 answer

How do I get a stack trace from Zappa with Python on AWS Lambda

I'm using the Zappa framework https://github.com/Miserlou/Zappa with Python and Flask on AWS Lambda. When it raises an exception it appears in the CloudWatch log but is illegible to me. I do get a normal Flask stack trace returned from a HTTP GET in…
I have no cat
  • 226
  • 5
  • 13
4
votes
2 answers

Zappa deployment error - troposphere==2.7.1 didn't help AttributeError: 'Template' object has no attribute 'add_description'

I have migrated my python project from 2.7 to 3.8. and I am trying to deploy using zappa. But, as soon as it's starting updating Lambda function configs it hits this error. Updating Lambda function configuration.. Oh no! An error occurred!…
Leila
  • 232
  • 6
  • 15
4
votes
1 answer

Is a WSGI container relevant on AWS Lambda?

I've got a Flask based web application that deploys to AWS Lambda via Zappa. All is well and good. The Flask documentation says: While lightweight and easy to use, Flask’s built-in server is not suitable for production as it doesn’t scale well.…
afaulconbridge
  • 1,107
  • 9
  • 21
4
votes
2 answers

Zappa packaged lambda error ..botocore.exceptions.SSLError: SSL validation failed for [Errno 2] No such file or directory

Running AWS lambda service packaged using Zappa.io The service is running however, its not able to reach the S3 file due to ssl error Getting the below error while trying to access remote_env from an s3 bucket [1592935276008] [DEBUG]…
virtuvious
  • 2,362
  • 2
  • 21
  • 22
4
votes
1 answer

Unable to exclude certain python libraries from zappa package

How do I correctly exclude certainly libraries (like torch, numpy...) from zappa package? I tried setting the exclude parameter in zappa_settings.json but it doesn't seem like excluding these packages. Below is my zappa_settings.json { "dev":…
jon
  • 429
  • 6
  • 15
4
votes
1 answer

zappa giving 413 request entity too large error for Django form with mutiple images

I have a Django project that requires users to use add multiple images to a post article. I am using django and deploying it using zappa. I know that in Zappa the maximum size in the page load is 10mb. I have 1 post image and 7 prep images. When…
Samir Tendulkar
  • 1,151
  • 3
  • 19
  • 47
4
votes
1 answer

spaCy throws OSError when deployed to AWS Lambda using zappa

When deploying a Python spaCy app to AWS Lambda, I get the following error in the deploy (see below). Why deploy using zappa? The zip file is 125MB compressed, so a direct upload from the aws-cli fails on space, and a transfer to S3 also fails…
geophf
  • 41
  • 5
4
votes
2 answers

How to switch between multiple AWS accounts with Zappa

I am experimenting with how to deploy lambdas into different AWS accounts in continuous delivery environment. At the moment I am stuck with that. Can you please give me a clue about this? As an example with AWS CLI we could define which profile we…
3
votes
2 answers

NodeJS HTTPServer takes a long time to close

I'm working on a Zappa app, and I'm currently trying to make a little watch script that stops the server, clears require.cache then re-requires and restarts the server when a file changes, something like: # watch all dependent files for file of…
connec
  • 7,231
  • 3
  • 23
  • 26
3
votes
1 answer

Django deployment with Zappa - root URL is wrong

I have successfully set up a Django app following a Zappa tutorial I found. However, the problem is that Zappa deploys my app to the location: https://some-aws-address/devel where "devel" is the name of my particular Zappa deployment. The problem…
Hayden Eastwood
  • 928
  • 2
  • 10
  • 20
3
votes
2 answers

Error message: "'NoneType' object is not callable". - received from zappa deployed django application on AWS Lambda

I'm running into an error after deploying my django app to lambda using zappa. This is the error: {'message': 'An uncaught exception happened while servicing this request. You can investigate this with the `zappa tail` command.', 'traceback':…
goose
  • 2,502
  • 6
  • 42
  • 69
1
2
3
15 16