zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.33k stars 363 forks source link

keep_warm callbacks have no effect on warmup #1218

Closed JacobDel closed 1 year ago

JacobDel commented 1 year ago

Context

Expected Behavior

I start up my application and call a couple of API calls simultaneously to the backend. The backend is already warm and thus is able to process the API calls immediately. The application received the API responses in time and no 503 errors occurred.

Actual Behavior

I get a 503 timeout error in my application when I make the first API call. When I try again then it works fine. From the tail logs from zappa I assume that the keep_warm_callback had no effect on the application and did not keep the lambda warm. These are the tial logs from zappa:

(virtualenv) laptop@laptop backend % zappa tail dev --since 10m
Calling tail for stage dev..
[1675876100435] [DEBUG] 2023-02-08T17:08:20.435Z 883369ee-0d8f-4eb3-a05c-6d5a0cc1bc76 Zappa Event: {'time': '2023-02-08T17:07:40Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '293700610486', 'region': 'eu-west-3', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:eu-west-3:293700610486:rule/ce7271526fd1904871f7e-zappa-keep-warm-handler.keep_warm_callback'], 'id': '9c906e93-2cef-7aa3-35f1-3d1b74239b9f', 'kwargs': {}}
[1675876100435] [DEBUG] 2023-02-08T17:08:20.435Z 883369ee-0d8f-4eb3-a05c-6d5a0cc1bc76 Zappa Event: {}
[1675876340430] [DEBUG] 2023-02-08T17:12:20.430Z 939629c4-1102-4808-a57a-4b3e2a910b5d Zappa Event: {'time': '2023-02-08T17:11:40Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '293700610486', 'region': 'eu-west-3', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:eu-west-3:293700610486:rule/ce7271526fd1904871f7e-zappa-keep-warm-handler.keep_warm_callback'], 'id': '9615b72a-c2f6-18ec-2fcc-8cd0dee406f9', 'kwargs': {}}
[1675876340430] [DEBUG] 2023-02-08T17:12:20.430Z 939629c4-1102-4808-a57a-4b3e2a910b5d Zappa Event: {}
[1675876580518] [DEBUG] 2023-02-08T17:16:20.518Z 257b8639-698d-4e6b-a436-0e620e9640f6 Zappa Event: {'time': '2023-02-08T17:15:40Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '293700610486', 'region': 'eu-west-3', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:eu-west-3:293700610486:rule/ce7271526fd1904871f7e-zappa-keep-warm-handler.keep_warm_callback'], 'id': '8eb5e782-d7cd-b241-71f0-f36bbaf8e243', 'kwargs': {}}
[1675876580518] [DEBUG] 2023-02-08T17:16:20.518Z 257b8639-698d-4e6b-a436-0e620e9640f6 Zappa Event: {}
[1675876672411] INIT_START Runtime Version: python:3.9.v16 Runtime Version ARN: arn:aws:lambda:eu-west-3::runtime:07a48df201798d627f2b950f03bb227aab4a655a1d019c3296406f95937e2525
[1675876673230] Instancing..
[1675876673232] [DEBUG] 2023-02-08T17:17:53.232Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
[1675876673234] [DEBUG] 2023-02-08T17:17:53.233Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from before-call.apigateway to before-call.api-gateway
[1675876673234] [DEBUG] 2023-02-08T17:17:53.234Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
[1675876673236] [DEBUG] 2023-02-08T17:17:53.236Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
[1675876673236] [DEBUG] 2023-02-08T17:17:53.236Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
[1675876673237] [DEBUG] 2023-02-08T17:17:53.236Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
[1675876673245] [DEBUG] 2023-02-08T17:17:53.245Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
[1675876673248] [DEBUG] 2023-02-08T17:17:53.248Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
[1675876673248] [DEBUG] 2023-02-08T17:17:53.248Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
[1675876673248] [DEBUG] 2023-02-08T17:17:53.248Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
[1675876673248] [DEBUG] 2023-02-08T17:17:53.248Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
[1675876673328] [DEBUG] 2023-02-08T17:17:53.328Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/boto3/data/s3/2006-03-01/resources-1.json
[1675876673348] [DEBUG] 2023-02-08T17:17:53.348Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 IMDS ENDPOINT: http://169.xxx.xxx.xxx/
[1675876673350] [DEBUG] 2023-02-08T17:17:53.350Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Looking for credentials via: env
[1675876673350] [INFO] 2023-02-08T17:17:53.350Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Found credentials in environment variables.
[1675876673367] [DEBUG] 2023-02-08T17:17:53.366Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/botocore/data/endpoints.json
[1675876673427] [DEBUG] 2023-02-08T17:17:53.426Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/botocore/data/sdk-default-configuration.json
[1675876673427] [DEBUG] 2023-02-08T17:17:53.427Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f80660b0280>
[1675876673472] [DEBUG] 2023-02-08T17:17:53.472Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/botocore/data/s3/2006-03-01/service-2.json
[1675876673552] [DEBUG] 2023-02-08T17:17:53.552Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/botocore/data/s3/2006-03-01/endpoint-rule-set-1.json.gz
[1675876673606] [DEBUG] 2023-02-08T17:17:53.606Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/botocore/data/partitions.json
[1675876673608] [DEBUG] 2023-02-08T17:17:53.608Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f806616c5e0>
[1675876673608] [DEBUG] 2023-02-08T17:17:53.608Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7f806874c4c0>
[1675876673828] [DEBUG] 2023-02-08T17:17:53.828Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f806616c3a0>
[1675876673928] [DEBUG] 2023-02-08T17:17:53.928Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Setting s3 timeout as (60, 60)
[1675876673932] [DEBUG] 2023-02-08T17:17:53.932Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading JSON file: /var/task/botocore/data/_retry.json
[1675876673932] [DEBUG] 2023-02-08T17:17:53.932Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Registering retry handlers for service: s3
[1675876673933] [DEBUG] 2023-02-08T17:17:53.932Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Registering S3 region redirector handler
[1675876673945] [DEBUG] 2023-02-08T17:17:53.945Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading s3:s3
[1675876673947] [DEBUG] 2023-02-08T17:17:53.947Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Loading s3:Object
[1675876673948] [DEBUG] 2023-02-08T17:17:53.948Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event creating-resource-class.s3.Object: calling handler <function lazy_call.<locals>._handler at 0x7f80658eff70>
[1675876673948] [DEBUG] 2023-02-08T17:17:53.948Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Calling s3:get_object with {'Bucket': 'project-name', 'Key': 'dev_project-name-backend_current_project.tar.gz'}
[1675876673949] [DEBUG] 2023-02-08T17:17:53.949Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-endpoint-resolution.s3: calling handler <function customize_endpoint_resolver_builtins at 0x7f80660f2b80>
[1675876673949] [DEBUG] 2023-02-08T17:17:53.949Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-endpoint-resolution.s3: calling handler <bound method S3RegionRedirectorv2.redirect_from_cache of <botocore.utils.S3RegionRedirectorv2 object at 0x7f8065c47550>>
[1675876673965] [DEBUG] 2023-02-08T17:17:53.965Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Calling endpoint provider with parameters: {'Bucket': 'project-name', 'Region': 'eu-west-3', 'UseFIPS': False, 'UseDualStack': False, 'ForcePathStyle': False, 'Accelerate': False, 'UseGlobalEndpoint': False, 'DisableMultiRegionAccessPoints': False, 'UseArnRegion': True}
[1675876673967] [DEBUG] 2023-02-08T17:17:53.966Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Endpoint provider result: https://project-name.s3.eu-west-3.amazonaws.com
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Selecting from endpoint provider's list of auth schemes: "sigv4". User selected auth scheme is: "None"
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Selected auth type "v4" as "v4" with signing context params: {'region': 'eu-west-3', 'signing_name': 's3', 'disableDoubleEncoding': True}
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7f80660e6c10>
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7f80660e6b80>
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-parameter-build.s3.GetObject: calling handler <function remove_bucket_from_url_paths_from_model at 0x7f80660f29d0>
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirectorv2.annotate_request_context of <botocore.utils.S3RegionRedirectorv2 object at 0x7f8065c47550>>
[1675876673967] [DEBUG] 2023-02-08T17:17:53.967Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7f80660e69d0>
[1675876673968] [DEBUG] 2023-02-08T17:17:53.968Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7f80660e6ee0>
[1675876673968] [DEBUG] 2023-02-08T17:17:53.968Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-call.s3.GetObject: calling handler <function add_recursion_detection_header at 0x7f80660e6670>
[1675876673968] [DEBUG] 2023-02-08T17:17:53.968Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-call.s3.GetObject: calling handler <function inject_api_version_header_if_needed at 0x7f80660f2280>
[1675876673968] [DEBUG] 2023-02-08T17:17:53.968Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Making request for OperationModel(name=GetObject) with params: {'url_path': '/dev_project-name-backend_current_project.tar.gz', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.26.50 Python/3.9.13 Linux/4.14.255-296-236.539.amzn2.x86_64 exec-env/AWS_Lambda_python3.9 Botocore/1.29.50 Resource', 'X-Amzn-Trace-Id': 'Root=1-63e3d940-3fb89354222cfad22c64c926;Parent=73eebf7c1d61b9c7;Sampled=0'}, 'body': b'', 'auth_path': '/project-name/dev_project-name-backend_current_project.tar.gz', 'url': 'https://project-name.s3.eu-west-3.amazonaws.com/dev_project-name-backend_current_project.tar.gz', 'context': {'client_region': 'eu-west-3', 'client_config': <botocore.config.Config object at 0x7f8065c532b0>, 'has_streaming_input': False, 'auth_type': 'v4', 'signing': {'region': 'eu-west-3', 'signing_name': 's3', 'disableDoubleEncoding': True}, 's3_redirect': {'redirected': False, 'bucket': 'project-name', 'params': {'Bucket': 'project-name', 'Key': 'dev_project-name-backend_current_project.tar.gz'}}}}
[1675876673969] [DEBUG] 2023-02-08T17:17:53.968Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f8065d3ca00>>
[1675876673969] [DEBUG] 2023-02-08T17:17:53.969Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7f80660e68b0>
[1675876673969] [DEBUG] 2023-02-08T17:17:53.969Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event before-sign.s3.GetObject: calling handler <function remove_arn_from_signing_path at 0x7f80660f2af0>
[1675876673969] [DEBUG] 2023-02-08T17:17:53.969Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Calculating signature using v4 auth.
[1675876673969] [DEBUG] 2023-02-08T17:17:53.969Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 CanonicalRequest:
GET
/dev_project-name-backend_current_project.tar.gz

host:project-name.s3.eu-west-3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20230208T171753Z
x-amz-security-token:IQoJb3JpZ2luX2VjEPL//////////wEaCWV1LXdlc3QtMyJGMEQCIFQyjAcEftpZx2OQvt6IlZHitX6NosnaepSIudy7GCL3AiAl9D0CuhPfrTExMNbH+kF3piXVijcAexiUiPpzyKSZoiqNAwh6EAAaDDI5MzcwMDYxMDQ4NiIMYF+oUfvFmNqy1GiyKuoCIJq32fb70E/mTD3VjeuIoSQxzbkGSVbNDy3C60PBCMz5gGFJ0g4CTMJA5zujYc/WSiK1dRegCb/b+mXSNFoRhR4CMaj0hqpLEv0FYX9YaJLO/Mob2WVqcYBIBnikvCZc2aWCCum9+d5oy74Js6AHAzJXCB4eIMTK0f/CSAYrFs6L3xY0i/lECMaJ6ounpH9i7Sf0IrDXgJffb1eLjLmWexGeSlToquPBalTuWq4kpb04qnlgeWXg12K7gd42yT1JoT/8p81z7AWT/WZfLTMNI1XjbHd6getEPJp4hzFCPG6X0pwzh+/APILJpOJS+JAds3Sru5xvjx0UOyoRu0ReAv3tlYw4pWD6xTb77hxWDnc3PLofq8LtxjwaxIyXO+l0LfBhTX/OINlHPwDhBuxNcFE83i/kMFb/04xIN3wHSQyYamlIYoFdWewExewy1Nwii2UmnPPJqCQ2LI6VP8MSN7UUUXBSvq4m2J8wwLKPnwY6ngFfIMH6szHb/J7lMbmPaT2hvQlK3iE+jFzIS3uGz26KJzQftLIUPlvaDtBa5gV1c8o947riCPzrr6s4JgOMoAnW551wr8vlFlqijUTree8/qOsbgkAxjroQuFnxMLV70DiaVCsW8s4jTsFbYH57FCN+/ILIVxeGA1Mi9hc9BHoWjKZVXgvWHzVYsB4n8NLJi6r2eNWVJES+0vVb/ZXnKg==

host;x-amz-content-sha256;x-amz-date;x-amz-security-token
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
[1675876673970] [DEBUG] 2023-02-08T17:17:53.970Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 StringToSign:
AWS4-HMAC-SHA256
20230208T171753Z
20230208/eu-west-3/s3/aws4_request
7bf780cea534dc14100dbd9e0216b83a9cc162a82c00e2064ef56acd3814d230
[1675876673970] [DEBUG] 2023-02-08T17:17:53.970Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Signature:
c4236027771eb4f1f4e4f7ee368f7e343583570ac7921886a19ef4d2cc13e646
[1675876673970] [DEBUG] 2023-02-08T17:17:53.970Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event request-created.s3.GetObject: calling handler <function add_retry_headers at 0x7f80660f2940>
[1675876673970] [DEBUG] 2023-02-08T17:17:53.970Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Sending http request: <AWSPreparedRequest stream_output=True, method=GET, url=https://project-name.s3.eu-west-3.amazonaws.com/dev_project-name-backend_current_project.tar.gz, headers={'User-Agent': b'Boto3/1.26.50 Python/3.9.13 Linux/4.14.255-296-236.539.amzn2.x86_64 exec-env/AWS_Lambda_python3.9 Botocore/1.29.50 Resource', 'X-Amzn-Trace-Id': b'Root=1-63e3d940-3fb89354222cfad22c64c926;Parent=73eebf7c1d61b9c7;Sampled=0', 'X-Amz-Date': b'20230208T171753Z', 'X-Amz-Security-Token': b'IQoJb3JpZ2luX2VjEPL//////////wEaCWV1LXdlc3QtMyJGMEQCIFQyjAcEftpZx2OQvt6IlZHitX6NosnaepSIudy7GCL3AiAl9D0CuhPfrTExMNbH+kF3piXVijcAexiUiPpzyKSZoiqNAwh6EAAaDDI5MzcwMDYxMDQ4NiIMYF+oUfvFmNqy1GiyKuoCIJq32fb70E/mTD3VjeuIoSQxzbkGSVbNDy3C60PBCMz5gGFJ0g4CTMJA5zujYc/WSiK1dRegCb/b+mXSNFoRhR4CMaj0hqpLEv0FYX9YaJLO/Mob2WVqcYBIBnikvCZc2aWCCum9+d5oy74Js6AHAzJXCB4eIMTK0f/CSAYrFs6L3xY0i/lECMaJ6ounpH9i7Sf0IrDXgJffb1eLjLmWexGeSlToquPBalTuWq4kpb04qnlgeWXg12K7gd42yT1JoT/8p81z7AWT/WZfLTMNI1XjbHd6getEPJp4hzFCPG6X0pwzh+/APILJpOJS+JAds3Sru5xvjx0UOyoRu0ReAv3tlYw4pWD6xTb77hxWDnc3PLofq8LtxjwaxIyXO+l0LfBhTX/OINlHPwDhBuxNcFE83i/kMFb/04xIN3wHSQyYamlIYoFdWewExewy1Nwii2UmnPPJqCQ2LI6VP8MSN7UUUXBSvq4m2J8wwLKPnwY6ngFfIMH6szHb/J7lMbmPaT2hvQlK3iE+jFzIS3uGz26KJzQftLIUPlvaDtBa5gV1c8o947riCPzrr6s4JgOMoAnW551wr8vlFlqijUTree8/qOsbgkAxjroQuFnxMLV70DiaVCsW8s4jTsFbYH57FCN+/ILIVxeGA1Mi9hc9BHoWjKZVXgvWHzVYsB4n8NLJi6r2eNWVJES+0vVb/ZXnKg==', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAUIYPLVG3AQFEREPQ/20230208/eu-west-3/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=c4236027771eb4f1f4e4f7ee368f7e343583570ac7921886a19ef4d2cc13e646', 'amz-sdk-invocation-id': b'bcd06573-6aa3-4fa8-968e-7ad85b37657d', 'amz-sdk-request': b'attempt=1'}>
[1675876673971] [DEBUG] 2023-02-08T17:17:53.971Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Certificate path: /var/task/certifi/cacert.pem
[1675876673971] [DEBUG] 2023-02-08T17:17:53.971Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Starting new HTTPS connection (1): project-name.s3.eu-west-3.amazonaws.com:443
[1675876674169] [DEBUG] 2023-02-08T17:17:54.169Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 https://project-name.s3.eu-west-3.amazonaws.com:443 "GET /dev_project-name-backend_current_project.tar.gz HTTP/1.1" 200 82423279
[1675876674169] [DEBUG] 2023-02-08T17:17:54.169Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Response headers: {'x-amz-id-2': 'rPT1IJdHXWjZ6eVemmPQZK322TjRY6TgIaWG2CEY78E2MHvdPhunKM/MEwEeCNO4OfZRY6hOuGijmzh3qIzMrw==', 'x-amz-request-id': 'VBQR4KZ8KS7N7SVZ', 'Date': 'Wed, 08 Feb 2023 17:17:55 GMT', 'Last-Modified': 'Tue, 07 Feb 2023 22:07:25 GMT', 'ETag': '"ba4b73b64d4f6112c31252ac21c42c09-10"', 'x-amz-server-side-encryption': 'AES256', 'Accept-Ranges': 'bytes', 'Content-Type': 'binary/octet-stream', 'Server': 'AmazonS3', 'Content-Length': '82423279'}
[1675876674170] [DEBUG] 2023-02-08T17:17:54.170Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Response body:
<botocore.response.StreamingBody object at 0x7f80644f8ee0>
[1675876674171] [DEBUG] 2023-02-08T17:17:54.171Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event needs-retry.s3.GetObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7f8065c479d0>
[1675876674171] [DEBUG] 2023-02-08T17:17:54.171Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 No retry needed.
[1675876674171] [DEBUG] 2023-02-08T17:17:54.171Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x7f8065c47550>>
[1675876674171] [DEBUG] 2023-02-08T17:17:54.171Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Response: {'ResponseMetadata': {'RequestId': 'VBQR4KZ8KS7N7SVZ', 'HostId': 'rPT1IJdHXWjZ6eVemmPQZK322TjRY6TgIaWG2CEY78E2MHvdPhunKM/MEwEeCNO4OfZRY6hOuGijmzh3qIzMrw==', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': 'rPT1IJdHXWjZ6eVemmPQZK322TjRY6TgIaWG2CEY78E2MHvdPhunKM/MEwEeCNO4OfZRY6hOuGijmzh3qIzMrw==', 'x-amz-request-id': 'VBQR4KZ8KS7N7SVZ', 'date': 'Wed, 08 Feb 2023 17:17:55 GMT', 'last-modified': 'Tue, 07 Feb 2023 22:07:25 GMT', 'etag': '"ba4b73b64d4f6112c31252ac21c42c09-10"', 'x-amz-server-side-encryption': 'AES256', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'server': 'AmazonS3', 'content-length': '82423279'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes', 'LastModified': datetime.datetime(2023, 2, 7, 22, 7, 25, tzinfo=tzutc()), 'ContentLength': 82423279, 'ETag': '"ba4b73b64d4f6112c31252ac21c42c09-10"', 'ContentType': 'binary/octet-stream', 'ServerSideEncryption': 'AES256', 'Metadata': {}, 'Body': <botocore.response.StreamingBody object at 0x7f80644f8ee0>}
[1675876705568] [DEBUG] 2023-02-08T17:18:25.568Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 Zappa Event: {'resource': '/{proxy+}', 'path': '/account/summary', 'httpMethod': 'GET', 'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'nl-NL,nl;q=0.9', 'Authorization': 'Bearer eyJraWQiOiJ1b1dUYmpvU0h6aWREQVBCWEpWVndsSWNTemtDbzh3RVZGcTB1ajdJSjNvPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIzNTljZjNmYS05ZmM4LTRhY2ItYjVhZi05Yjk3M2Q2ZDEyNTAiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tXC9ldS13ZXN0LTNfeTRCcUhkdmN0IiwiY29nb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ablet-Viewer': 'false', 'CloudFront-Viewer-ASN': '6848', 'CloudFront-Viewer-Country': 'FR', 'Host': 'unique-url.execute-api.eu-west-3.amazonaws.com', 'User-Agent': 'app-name/1 CFNetwork/1402.0.8 Darwin/22.2.0', 'Via': '2.0 9463f100725b8b17da2d778617835760.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': '7EX-SLW3n-eqc_dEYrxg5bI28FeWUso6zCVXz38KrXYlh97fT6T7iA==', 'X-Amzn-Trace-Id': 'Root=1-63e3d940-3fb89354222cfad22c64c926', 'X-Forwarded-For': '178\.xxx\.xxx\.xxx, 64.252.180.71', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https'}, 'multiValueHeaders': {'Accept': ['*/*'], 'Accept-Encoding': ['gzip, deflate, br'], 'Accept-Language': ['nl-NL,nl;q=0.9'], 'Authorization': ['Bearer eyJraWQiOiJ1b1dUYmpvU0h6aWREQVBCWEpWVndsSWNTemtDbzh3RVZGcTB1ajdJSjNvPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIzNTljZjNmYS05ZmM4LTRhY2ItYjVhZi05Yjk3M2Q2ZDEyNTAiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tXC9ldS13ZXN0LTNfeTRCcUhkdmN0IiwiY29nbml0bzp1c2VybmFtZSI6InRlc3RnZWJydWlrZXIiLCJjdXN0b206ZW5jcnlwdGlvbktleSI6IjAubG4xamNpdHUiLCJvcmlnaW5fanRpIjoiMzk0NzgyMTMtNTQzMi00Y2RiLTlhOGUtZWM1YTM0ZGI1NTMyIiwiYXVkIjoiNHY4cmc4NTcwaWExZnZjdGIzZHYyNmYzbG8iLCJldmVudF9pZCI6IjEwNTVhMWJjLTc1MDQtNGE3NC1hMjE4LTU2MTAwYjIwOThlNCIsImN1c3RvbTpwdWJsaWNLZXkiOiJ7XCJuXCI6XCJl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DlhYzFlYmQzYzA0YzFmMjEwODYwZWY1OTRkZjM1NmI3YjE5NmY3MWQzOTliYWI5NTM1ZGZkNzAxZGE5N2E0MmExZGJjMmUzNTZiXCJ9IiwiY3VzdG9tOmNvbnN1bHRhbnQiOiIwIiwiZXhwIjoxNjc1ODc2OTcyLCJpYXQiOjE2NzU4NzMzNzIsImp0aSI6IjIzYzc5MjhlLWQ4ZWEtNGE4Yy05ZWRhLTQ3MzE2YmUwZWY3MiIsImVtYWlsIjoiY2FtZXIxOTg0QGVpbnJvdC5jb20ifQ.TTx3Jvr3bZ4J7WLCosn3iCWNafSuyqU6gqqCpR-0wRQuRakPmz2CSJfX5P-PutdzlJkjdLxD21lacMyHKh_8LaIRLNpvzA9zZh5waEnE0FY27o02b2dz-ZCj6WSQwzLYR-hmF1ZVUmJ6UJjTZHp-hOjn-bxMhHv-so380ItzcxfQp_fKwr18krwJJjaF42hyO-_cR-W9Y9QsKIZim2_VUOLwxp5Hvf9uf3BGd3pibcUpzz0D-29Cm6kq_GtdxPnSCmIkXDV2WVmoR8OgO64MOLnzSewrqHlj9SR7plza65K6t_yga7oA7Tcc7uQIOFl5SasY5p46Q9hKlPKnDTJDTQ'], 'CloudFront-Forwarded-Proto': ['https'], 'CloudFront-Is-Desktop-Viewer': ['true'], 'CloudFront-Is-Mobile-Viewer': ['false'], 'CloudFront-Is-SmartTV-Viewer': ['false'], 'CloudFront-Is-Tablet-Viewer': ['false'], 'CloudFront-Viewer-ASN': ['6848'], 'CloudFront-Viewer-Country': ['FR'], 'Host': ['unique-url.execute-api.eu-west-3.amazonaws.com'], 'User-Agent': ['app-name/1 CFNetwork/1402.0.8 Darwin/22.2.0'], 'Via': ['2.0 9463f100725b8b17da2d778617835760.cloudfront.net (CloudFront)'], 'X-Amz-Cf-Id': ['7EX-SLW3n-eqc_dEYrxg5bI28FeWUso6zCVXz38KrXYlh97fT6T7iA=='], 'X-Amzn-Trace-Id': ['Root=1-63e3d940-3fb89354222cfad22c64c926'], 'X-Forwarded-For': ['178\.xxx\.xxx\.xxx, 64.252.180.71'], 'X-Forwarded-Port': ['443'], 'X-Forwarded-Proto': ['https']}, 'queryStringParameters': None, 'multiValueQueryStringParameters': None, 'pathParameters': {'proxy': 'account/summary'}, 'stageVariables': None, 'requestContext': {'resourceId': 'qunjms', 'resourcePath': '/{proxy+}', 'httpMethod': 'GET', 'extendedRequestId': 'AB7iEH6CCGYFkhA=', 'requestTime': '08/Feb/2023:17:17:52 +0000', 'path': '/dev/account/summary', 'accountId': '293700610486', 'protocol': 'HTTP/1.1', 'stage': 'dev', 'domainPrefix': 'unique-url', 'requestTimeEpoch': 1675876672114, 'requestId': 'bd400411-e2e6-4773-ab88-6737233f78df', 'identity': {'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'sourceIp': '178\.xxx\.xxx\.xxx', 'principalOrgId': None, 'accessKey': None, 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'app-name/1 CFNetwork/1402.0.8 Darwin/22.2.0', 'user': None}, 'domainName': 'unique-url.execute-api.eu-west-3.amazonaws.com', 'apiId': 'unique-url'}, 'body': None, 'isBase64Encoded': False}
[1675876705569] [DEBUG] 2023-02-08T17:18:25.568Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 host found: [unique-url.execute-api.eu-west-3.amazonaws.com]
[1675876705569] [DEBUG] 2023-02-08T17:18:25.569Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 amazonaws found in host
[1675876705799] [INFO] 2023-02-08T17:18:25.799Z e9410e4e-2f1c-4af5-a465-c2cb96aacc94 178\.xxx\.xxx\.xxx - - [08/Feb/2023:17:18:25 +0000] "GET /test/test HTTP/1.1" 200 72 "" "app-name/1 CFNetwork/1402.0.8 Darwin/22.2.0" 0/230.72

Possible Fix

/

Steps to Reproduce

  1. wait until lambda is not warm any more (2 hours will do)
  2. make an api call to the lambda
  3. see if the api call response is received within the 30s limit (https://github.com/zappa/Zappa/issues/916)

Your Environment

dev: app_function: "app.app" "aws_region": "eu-west-3" "profile_name": "project-name" "project_name": "project-name-backend" "s3_bucket": "project-bucket" cors: true "vpc_config": "SubnetIds":

monkut commented 1 year ago

If you have a database using serverless it can take a while to spin up the database. In this case you are likely to exceed the 30 apigateway timeout.

Is your lambda using other services that could cause a long request?

JacobDel commented 1 year ago

Yes, it has to retrieve the whole zip folder from S3 during bootup (because of slim_handler)

souravjamwal77 commented 1 year ago

@JacobDel and @monkut lambda deployments are done using zip uploaded to S3. Either we're having a communication gap here or we can't understand @JacobDel's problem. @JacobDel let me know when can we sit on a call, I'm on available for next 3 days as I will be at home away from work.

JacobDel commented 1 year ago

Sorry for the delay on this issue. I won't have time to look deeper into it at the moment because of work. I will reopen this issue when I can find more time to see if it's a bug or not. My apologies