Zappa: api.app.app -- ModuleNotFoundError
Hi, I’m getting an internal error trying to use a deployed API. I’m having a really hard time resolving it.
Ran zappa deploy dev and got an internal error on a $ http POST (url) < payload.json request.
Error Snippet (full error below)
[1524690384385] Failed to find library...right filename?
[1524690384395] module 'api' has no attribute 'app': AttributeError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 132, in __init__
wsgi_app_function = getattr(self.app_module, self.settings.APP_FUNCTION)
AttributeError: module 'api' has no attribute 'app'
...
core.response.StreamingBody object at 0x7fb544d69a90>}
[1524693293814] Failed to find library...right filename?
[1524693293836] No module named 'api.app': ModuleNotFoundError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 129, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.app'
Context
putting up a relatively straightforward flask app with Zappa.
zappa settings:
{
"dev": {
"app_function": "api.app.app",
"aws_region": "us-east-1",
"profile_name": "default",
"project_name": "serverless-mach",
"runtime": "python3.6",
"s3_bucket": "zappa-bucket",
"slim_handler": "true"
}
}
Folder structure:
serverless-machine-learning-master
|---.vscode/
|---settings.txt
|---api/
|---app.py
|---bin/
|---payload.json
|---env/
|---Include/
|---Lib/
|---man/
|---Scripts/
|---tlc/
|---pip-selfcheck.txt
|---model/
|---train.py
|---model.pkl
Windows 10, Command Prompt for cli
(env) C:\Users\joshu\Documents\Code\Machine-Learning\serverless-machine-learning-master>python -V
Python 3.6.5 :: Anaconda, Inc.
(env) C:\Users\joshu\Documents\Code\Machine-Learning\serverless-machine-learning-master>pip freeze
argcomplete==1.9.2
base58==0.2.4
boto3==1.7.9
botocore==1.10.9
certifi==2018.4.16
cfn-flip==1.0.3
chardet==3.0.4
click==6.7
colorama==0.3.9
dill==0.2.7.1
docutils==0.14
durationpy==0.5
Flask==0.12.2
future==0.16.0
hjson==3.0.1
httpie==0.9.9
idna==2.6
itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.19.0
MarkupSafe==1.0
numpy==1.14.2
placebo==0.8.1
Pygments==2.2.0
pyreadline==2.1
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests==2.18.4
s3transfer==0.1.13
scikit-learn==0.19.1
scipy==1.0.1
six==1.11.0
sklearn==0.0
toml==0.9.4
tqdm==4.19.1
troposphere==2.2.1
Unidecode==1.0.22
urllib3==1.22
Werkzeug==0.12
wsgi-request-logger==0.4.6
zappa==0.45.1
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
app.py file (located in serverless-machine-learning-master/api/app.py)
from flask import Flask
from flask import request
from flask import json
import boto3
import pickle
import dill
BUCKET_NAME = 'ml-boston-housing'
MODEL_FILE_NAME = 'model2.pkl'
app = Flask(__name__)
S3 = boto3.client('s3', region_name='us-east-1')
def memoize(f):
memo = {}
def helper(x):
if x not in memo:
memo[x] = f(x)
return memo[x]
return helper
@app.route('/', methods=['POST'])
def index():
body_dict = request.get_json()
data = body_dict['data']
prediction = predict(data)
result = {'prediction': prediction}
return json.dumps(result)
@memoize
def load_model(key):
response = S3.get_object(Bucket=BUCKET_NAME, Key=key)
model_str = response['Body'].read()
model = pickle.loads(model_str)
return model
def predict(data):
model = load_model(MODEL_FILE_NAME)
return model.predict(data).tolist()
if __name__ == '__main__':
# listen on all IPs
app.run(host='0.0.0.0', debug=True)
zappa tail:
Calling tail for stage dev..
[1524688116975] Instancing..
[1524688116979] [DEBUG] 2018-04-25T20:28:36.978Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688116979] [DEBUG] 2018-04-25T20:28:36.979Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable config_file from defaults.
[1524688116979] [DEBUG] 2018-04-25T20:28:36.979Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable credentials_file from defaults.
[1524688116979] [DEBUG] 2018-04-25T20:28:36.979Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable data_path from defaults.
[1524688116983] [DEBUG] 2018-04-25T20:28:36.983Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading JSON file: /var/task/boto3/data/s3/2006-03-01/resources-1.json
[1524688116993] [DEBUG] 2018-04-25T20:28:36.992Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable region from environment with value 'us-east-1'.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable ca_bundle from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable credentials_file from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable config_file from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable metadata_service_timeout from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688116993] [DEBUG] 2018-04-25T20:28:36.993Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable metadata_service_num_attempts from defaults.
[1524688117017] [DEBUG] 2018-04-25T20:28:37.17Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688117017] [DEBUG] 2018-04-25T20:28:37.17Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Looking for credentials via: env
[1524688117017] [INFO] 2018-04-25T20:28:37.17Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Found credentials in environment variables.
[1524688117017] [DEBUG] 2018-04-25T20:28:37.17Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading JSON file: /var/task/botocore/data/endpoints.json
[1524688117034] [DEBUG] 2018-04-25T20:28:37.33Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading variable profile from defaults.
[1524688117034] [DEBUG] 2018-04-25T20:28:37.34Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fe8dc305d08>
[1524688117037] [DEBUG] 2018-04-25T20:28:37.37Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading JSON file: /var/task/botocore/data/s3/2006-03-01/service-2.json
[1524688117073] [DEBUG] 2018-04-25T20:28:37.73Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7fe8dc058bf8>
[1524688117073] [DEBUG] 2018-04-25T20:28:37.73Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7fe8dbde2730>
[1524688117194] [DEBUG] 2018-04-25T20:28:37.194Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7fe8dc0589d8>
[1524688117195] [DEBUG] 2018-04-25T20:28:37.194Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f The s3 config key is not a dictionary type, ignoring its value of: None
[1524688117214] [DEBUG] 2018-04-25T20:28:37.214Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Setting s3 timeout as (60, 60)
[1524688117214] [DEBUG] 2018-04-25T20:28:37.214Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading JSON file: /var/task/botocore/data/_retry.json
[1524688117215] [DEBUG] 2018-04-25T20:28:37.215Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Registering retry handlers for service: s3
[1524688117232] [DEBUG] 2018-04-25T20:28:37.231Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Defaulting to S3 virtual host style addressing with path style addressing fallback.
[1524688117232] [DEBUG] 2018-04-25T20:28:37.232Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading s3:s3
[1524688117233] [DEBUG] 2018-04-25T20:28:37.233Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Loading s3:Object
[1524688117234] [DEBUG] 2018-04-25T20:28:37.234Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event creating-resource-class.s3.Object: calling handler <function lazy_call.<locals>._handler at 0x7fe8dbded378>
[1524688117234] [DEBUG] 2018-04-25T20:28:37.234Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Calling s3:get_object with {'Bucket': 'zappa-1wdf1h051', 'Key': 'dev_serverless-mach_current_project.tar.gz'}
[1524688117235] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7fe8dc30e488>
[1524688117235] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7fe8dc30e400>
[1524688117235] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7fe8dbab15c0>>
[1524688117235] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7fe8dc30e048>
[1524688117235] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7fe8dc30e8c8>
[1524688117235] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-call.s3.GetObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7fe8dbab15c0>>
[1524688117236] [DEBUG] 2018-04-25T20:28:37.235Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Making request for OperationModel(name=GetObject) (verify_ssl=True) with params: {'url_path': '/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.7.9 Python/3.6.1 Linux/4.9.91-40.57.amzn1.x86_64 exec-env/AWS_Lambda_python3.6 Botocore/1.10.9 Resource'}, 'body': b'', 'url': 'https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x7fe8dbb11da0>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'zappa-1wdf1h051'}}}
[1524688117236] [DEBUG] 2018-04-25T20:28:37.236Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fe8dbb11400>>
[1524688117236] [DEBUG] 2018-04-25T20:28:37.236Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event choose-signer.s3.GetObject: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7fe8dc1aa518>>
[1524688117236] [DEBUG] 2018-04-25T20:28:37.236Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7fe8dc30cea0>
[1524688117236] [DEBUG] 2018-04-25T20:28:37.236Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event before-sign.s3.GetObject: calling handler <function fix_s3_host at 0x7fe8dc07a158>
[1524688117236] [DEBUG] 2018-04-25T20:28:37.236Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Checking for DNS compatible bucket for: https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz
[1524688117236] [DEBUG] 2018-04-25T20:28:37.236Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f URI updated to: https://zappa-1wdf1h051.s3.amazonaws.com/dev_serverless-mach_current_project.tar.gz
[1524688117237] [DEBUG] 2018-04-25T20:28:37.237Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Calculating signature using v4 auth.
[1524688117237] [DEBUG] 2018-04-25T20:28:37.237Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f CanonicalRequest:
GET
/dev_serverless-mach_current_project.tar.gz
host:zappa-1wdf1h051.s3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20180425T202837Z
x-amz-security-token:FQoDYXdzEH4aDMt0dOW2znOL4zUqkiLsAefehWbVfPHg3LdCNPIZ8XhYecZoQ57iTg3kkfP/QFA6D1dpBAFppfcO51jhLviOI8SDAGNFBlPA9yLgczecfDFNsacyOXuJjMM9YNXegSZ+vi5rZXgg3aBIl1aRJmmVfvgmdLrfFugP5F70O/ZxQGdLLHUGSGQ7yUvdH7iYoWDjwQwO3Fcx6jSy1ORJIQlMJ5FnTLZwcaASSQ85n7SadbVe46i3pnFOQqAo9ispM1fCYDqsSg8UATIYtVMiiQNfqlBF65jIXbCWBAyu3YwB8pLHGbxh4/VSoGsmu1KcGrG6Q51g4h8vreNsQBsGKPPJg9cF
host;x-amz-content-sha256;x-amz-date;
[1524688117237] [DEBUG] 2018-04-25T20:28:37.237Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f StringToSign:
AWS4-HMAC-SHA256
20180425T202837Z
20180425/us-east-1/s3/aws4_request
69a208ce09de1e3ff0e740e5728edf4ac9ef9001828b303f2436154a89d3fd5c
[1524688117237] [DEBUG] 2018-04-25T20:28:37.237Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Signature:
9c50c56355c5f97d4f011ea6e1da9cce01fe8e98d567a8542c68278ae4a5325f
[1524688117254] [DEBUG] 2018-04-25T20:28:37.253Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Sending http request: <PreparedRequest [GET]>
[1524688117254] [INFO] 2018-04-25T20:28:37.254Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Starting new HTTPS connection (1): zappa-1wdf1h051.s3.amazonaws.com
[1524688117344] [DEBUG] 2018-04-25T20:28:37.344Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f "GET /dev_serverless-mach_current_project.tar.gz HTTP/1.1" 200 79062998
[1524688117345] [DEBUG] 2018-04-25T20:28:37.345Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Response headers: {'x-amz-id-2': 'aT2JV9ptOw8nyDeqyXUThj3V8nLt9273Z4/cLRdIB+QjC6/3xX6E5ifp04CzRtZG8z7CXwgKDbg=', 'x-amz-request-id': '4131EB09CB848ABB', 'date': 'Wed, 25 Apr 2018 20:28:38 GMT', 'last-modified': 'Wed, 25 Apr 2018 20:28:25 GMT', 'etag': '"f764dd3305c88143b12e6683edbdbf46-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79062998', 'server': 'AmazonS3'}
[1524688117345] [DEBUG] 2018-04-25T20:28:37.345Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Response body:
<botocore.response.StreamingBody object at 0x7fe8dba58f98>
[1524688117346] [DEBUG] 2018-04-25T20:28:37.346Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event needs-retry.s3.GetObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7fe8dba10cc0>
[1524688117346] [DEBUG] 2018-04-25T20:28:37.346Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f No retry needed.
[1524688117346] [DEBUG] 2018-04-25T20:28:37.346Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7fe8dbab15c0>>
[1524688117346] [DEBUG] 2018-04-25T20:28:37.346Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Response: {'ResponseMetadata': {'RequestId': '4131EB09CB848ABB', 'HostId': 'aT2JV9ptOw8nyDeqyXUThj3V8nLt9273Z4/cLRdIB+QjC6/3xX6E5ifp04CzRtZG8z7CXwgKDbg=', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': 'aT2JV9ptOw8nyDeqyXUThj3V8nLt9273Z4/cLRdIB+QjC6/3xX6E5ifp04CzRtZG8z7CXwgKDbg=', 'x-amz-request-id': '4131EB09CB848ABB', 'date': 'Wed, 25 Apr 2018 20:28:38 GMT', 'last-modified': 'Wed, 25 Apr 2018 20:28:25 GMT', 'etag': '"f764dd3305c88143b12e6683edbdbf46-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79062998', 'server': 'AmazonS3'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes', 'LastModified': datetime.datetime(2018, 4, 25, 20, 28, 25, tzinfo=tzutc()), 'ContentLength': 79062998, 'ETag': '"f764dd3305c88143b12e6683edbdbf46-10"', 'ContentType': 'binary/octet-stream', 'Metadata': {}, 'Body': <botocore.response.StreamingBody object at 0x7fe8dba58f98>}
[1524688123523] Instancing..
[1524688123526] [DEBUG] 2018-04-25T20:28:43.526Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123526] [DEBUG] 2018-04-25T20:28:43.526Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable config_file from defaults.
[1524688123526] [DEBUG] 2018-04-25T20:28:43.526Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable credentials_file from defaults.
[1524688123527] [DEBUG] 2018-04-25T20:28:43.526Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable data_path from defaults.
[1524688123536] [DEBUG] 2018-04-25T20:28:43.536Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading JSON file: /var/task/boto3/data/s3/2006-03-01/resources-1.json
[1524688123537] [DEBUG] 2018-04-25T20:28:43.537Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable region from environment with value 'us-east-1'.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.537Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable ca_bundle from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable credentials_file from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable config_file from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable metadata_service_timeout from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123538] [DEBUG] 2018-04-25T20:28:43.538Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable metadata_service_num_attempts from defaults.
[1524688123575] [DEBUG] 2018-04-25T20:28:43.572Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123575] [DEBUG] 2018-04-25T20:28:43.573Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Looking for credentials via: env
[1524688123575] [INFO] 2018-04-25T20:28:43.573Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Found credentials in environment variables.
[1524688123575] [DEBUG] 2018-04-25T20:28:43.573Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading JSON file: /var/task/botocore/data/endpoints.json
[1524688123595] [DEBUG] 2018-04-25T20:28:43.592Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading variable profile from defaults.
[1524688123595] [DEBUG] 2018-04-25T20:28:43.593Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event choose-service-name: calling handler <function handle_service_name_alias at 0x7ff80514fd08>
[1524688123615] [DEBUG] 2018-04-25T20:28:43.615Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading JSON file: /var/task/botocore/data/s3/2006-03-01/service-2.json
[1524688123655] [DEBUG] 2018-04-25T20:28:43.655Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7ff804ea2bf8>
[1524688123675] [DEBUG] 2018-04-25T20:28:43.655Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7ff804c2c730>
[1524688123855] [DEBUG] 2018-04-25T20:28:43.853Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7ff804ea29d8>
[1524688123855] [DEBUG] 2018-04-25T20:28:43.854Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d The s3 config key is not a dictionary type, ignoring its value of: None
[1524688123879] [DEBUG] 2018-04-25T20:28:43.876Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Setting s3 timeout as (60, 60)
[1524688123879] [DEBUG] 2018-04-25T20:28:43.876Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading JSON file: /var/task/botocore/data/_retry.json
[1524688123879] [DEBUG] 2018-04-25T20:28:43.877Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Registering retry handlers for service: s3
[1524688123879] [DEBUG] 2018-04-25T20:28:43.878Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Defaulting to S3 virtual host style addressing with path style addressing fallback.
[1524688123879] [DEBUG] 2018-04-25T20:28:43.878Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading s3:s3
[1524688123895] [DEBUG] 2018-04-25T20:28:43.893Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Loading s3:Object
[1524688123914] [DEBUG] 2018-04-25T20:28:43.911Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event creating-resource-class.s3.Object: calling handler <function lazy_call.<locals>._handler at 0x7ff804c37378>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.912Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Calling s3:get_object with {'Bucket': 'zappa-1wdf1h051', 'Key': 'dev_serverless-mach_current_project.tar.gz'}
[1524688123914] [DEBUG] 2018-04-25T20:28:43.912Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7ff805158488>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.912Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7ff805158400>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.912Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7ff804901908>>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.912Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7ff805158048>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.913Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7ff8051588c8>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.913Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-call.s3.GetObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7ff804901908>>
[1524688123914] [DEBUG] 2018-04-25T20:28:43.913Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Making request for OperationModel(name=GetObject) (verify_ssl=True) with params: {'url_path': '/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.7.9 Python/3.6.1 Linux/4.9.91-40.57.amzn1.x86_64 exec-env/AWS_Lambda_python3.6 Botocore/1.10.9 Resource'}, 'body': b'', 'url': 'https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x7ff80496c198>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'zappa-1wdf1h051'}}}
[1524688123915] [DEBUG] 2018-04-25T20:28:43.914Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7ff8049597b8>>
[1524688123915] [DEBUG] 2018-04-25T20:28:43.914Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event choose-signer.s3.GetObject: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7ff804ff08d0>>
[1524688123915] [DEBUG] 2018-04-25T20:28:43.914Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7ff805156ea0>
[1524688123915] [DEBUG] 2018-04-25T20:28:43.914Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event before-sign.s3.GetObject: calling handler <function fix_s3_host at 0x7ff804ebe158>
[1524688123915] [DEBUG] 2018-04-25T20:28:43.914Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Checking for DNS compatible bucket for: https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz
[1524688123915] [DEBUG] 2018-04-25T20:28:43.915Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d URI updated to: https://zappa-1wdf1h051.s3.amazonaws.com/dev_serverless-mach_current_project.tar.gz
[1524688123935] [DEBUG] 2018-04-25T20:28:43.931Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Calculating signature using v4 auth.
[1524688123935] [DEBUG] 2018-04-25T20:28:43.931Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d CanonicalRequest:
GET
/dev_serverless-mach_current_project.tar.gz
host:zappa-1wdf1h051.s3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20180425T202843Z
host;x-amz-content-sha256;
[1524688123935] [DEBUG] 2018-04-25T20:28:43.932Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d StringToSign:
AWS4-HMAC-SHA256
20180425T202843Z
20180425/us-east-1/s3/aws4_request
aae7f755d392d4e4cae92ae9349cda501b4a77a7515131728b5341454869dcf4
[1524688123935] [DEBUG] 2018-04-25T20:28:43.932Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Signature:
2c304c3495d770e9d18e4ccce55ddb5a1971f4ed071c12c1e327c0a4eeb627a7
[1524688123936] [DEBUG] 2018-04-25T20:28:43.935Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Sending http request: <PreparedRequest [GET]>
[1524688123937] [INFO] 2018-04-25T20:28:43.937Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Starting new HTTPS connection (1): zappa-1wdf1h051.s3.amazonaws.com
[1524688124028] [DEBUG] 2018-04-25T20:28:44.27Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d "GET /dev_serverless-mach_current_project.tar.gz HTTP/1.1" 200 79062998
[1524688124028] [DEBUG] 2018-04-25T20:28:44.28Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Response headers: {'x-amz-id-2': '3Lt8pWTEwr0EvoPfw/tIlhyU6tKuQRUpGLtl2qdtqE+s1zFB2RN5GAgiXek+bF4Bbv16a/xWvfM=', 'x-amz-request-id': '4004EFFEC1979B76', 'date': 'Wed, 25 Apr 2018 20:28:44 GMT', 'last-modified': 'Wed, 25 Apr 2018 20:28:25 GMT', 'etag': '"f764dd3305c88143b12e6683edbdbf46-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79062998', 'server': 'AmazonS3'}
[1524688124028] [DEBUG] 2018-04-25T20:28:44.28Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Response body:
<botocore.response.StreamingBody object at 0x7ff8048b2a58>
[1524688124029] [DEBUG] 2018-04-25T20:28:44.29Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event needs-retry.s3.GetObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7ff804901048>
[1524688124029] [DEBUG] 2018-04-25T20:28:44.29Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d No retry needed.
[1524688124029] [DEBUG] 2018-04-25T20:28:44.29Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7ff804901908>>
[1524688124029] [DEBUG] 2018-04-25T20:28:44.29Z 3f0ae381-48c7-11e8-ba7a-610e22687c4d Response: {'ResponseMetadata': {'RequestId': '4004EFFEC1979B76', 'HostId': '3Lt8pWTEwr0EvoPfw/tIlhyU6tKuQRUpGLtl2qdtqE+s1zFB2RN5GAgiXek+bF4Bbv16a/xWvfM=', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': '3Lt8pWTEwr0EvoPfw/tIlhyU6tKuQRUpGLtl2qdtqE+s1zFB2RN5GAgiXek+bF4Bbv16a/xWvfM=', 'x-amz-request-id': '4004EFFEC1979B76', 'date': 'Wed, 25 Apr 2018 20:28:44 GMT', 'last-modified': 'Wed, 25 Apr 2018 20:28:25 GMT', 'etag': '"f764dd3305c88143b12e6683edbdbf46-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79062998', 'server': 'AmazonS3'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes', 'LastModified': datetime.datetime(2018, 4, 25, 20, 28, 25, tzinfo=tzutc()), 'ContentLength': 79062998, 'ETag': '"f764dd3305c88143b12e6683edbdbf46-10"', 'ContentType': 'binary/octet-stream', 'Metadata': {}, 'Body': <botocore.response.StreamingBody object at 0x7ff8048b2a58>}
[1524688129994] Failed to find library...right filename?
[1524688130015] No module named 'api.app': ModuleNotFoundError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 129, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.app'
[1524688136176] Failed to find library...right filename?
[1524688136195] No module named 'api.app': ModuleNotFoundError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 129, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.app'
[1524688189191] [DEBUG] 2018-04-25T20:29:49.182Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Zappa Event: {'time': '2018-04-25T20:28:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'f5b7e842-fcd3-4d0b-747d-abd5942040d3', 'kwargs': {}}
[1524688189191] [DEBUG] 2018-04-25T20:29:49.182Z 3ae6b587-48c7-11e8-8f7e-f9ad0ebd826f Zappa Event: {}
[1524688201431] [DEBUG] 2018-04-25T20:30:01.421Z 6de0c974-48c7-11e8-834c-33119bd68dee Zappa Event: {'resource': '/', 'path': '/', 'httpMethod': 'POST', 'headers': {'Accept': 'application/json, */*', 'Accept-Encoding': 'gzip, deflate', '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-Country': 'US', 'Content-Type': 'application/json', 'Host': 'k1clveeod1.execute-api.us-east-1.amazonaws.com', 'User-Agent': 'HTTPie/0.9.9', 'Via': '1.1 00ba471211aa4c63ba48b34111f64da1.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': '2QAg8vKpR8Jber8_uo_5MG2GmziYxc840k18rlwidN4ILBAMAhNdrw==', 'X-Amzn-Trace-Id': 'Root=1-5ae0e549-39ffcf1cd224fcb405fcda04', 'X-Forwarded-For': '204.9.220.50, 52.46.29.76', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https'}, 'queryStringParameters': None, 'pathParameters': None, 'stageVariables': None, 'requestContext': {'resourceId': '4p6uj8w403', 'resourcePath': '/', 'httpMethod': 'POST', 'extendedRequestId': 'F6jDcE8EIAMFYPg=', 'requestTime': '25/Apr/2018:20:30:01 +0000', 'path': '/dev', 'accountId': '084485918776', 'protocol': 'HTTP/1.1', 'stage': 'dev', 'requestTimeEpoch': 1524688201255, 'requestId': '6dcb9394-48c7-11e8-a779-9593a2eaedbb', 'identity': {'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'sourceIp': '204.9.220.50', 'accessKey': None, 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'HTTPie/0.9.9', 'user': None}, 'apiId': 'k1clveeod1'}, 'body': 'ewogICJkYXRhIjogWwogICAgWwogICAgICA2LjIsCiAgICAgIDMuNAogICAgXSwKICAgIFsKICAgICAgNi4yLAogICAgICAxCiAgICBdCiAgXQp9', 'isBase64Encoded': True}
[1524688201436] 'NoneType' object is not callable
[1524688356500] [DEBUG] 2018-04-25T20:32:36.500Z ca4744c7-48c7-11e8-8f80-fd9560054416 Zappa Event: {'time': '2018-04-25T20:32:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '184ee4f4-cbbb-8a57-f18b-b542b7f50b80', 'kwargs': {}}
[1524688356500] [DEBUG] 2018-04-25T20:32:36.500Z ca4744c7-48c7-11e8-8f80-fd9560054416 Zappa Event: {}
[1524688596211] [DEBUG] 2018-04-25T20:36:36.199Z 58f1a35f-48c8-11e8-b288-219fe91ea70e Zappa Event: {'time': '2018-04-25T20:36:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '96205111-e97d-c115-bc5a-c5c1fc5a8924', 'kwargs': {}}
[1524688596211] [DEBUG] 2018-04-25T20:36:36.200Z 58f1a35f-48c8-11e8-b288-219fe91ea70e Zappa Event: {}
[1524688835971] [DEBUG] 2018-04-25T20:40:35.963Z e806f8c1-48c8-11e8-9f04-7b5203920b47 Zappa Event: {'time': '2018-04-25T20:40:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'a98db835-7603-1e3e-4d4e-9132473c58c7', 'kwargs': {}}
[1524688835971] [DEBUG] 2018-04-25T20:40:35.964Z e806f8c1-48c8-11e8-9f04-7b5203920b47 Zappa Event: {}
[1524689075791] [DEBUG] 2018-04-25T20:44:35.791Z 76fda28a-48c9-11e8-89a8-49c8a266fc3e Zappa Event: {'time': '2018-04-25T20:44:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'eb6145d4-a6e4-9bf0-78f9-0e014cf1e959', 'kwargs': {}}
[1524689075792] [DEBUG] 2018-04-25T20:44:35.792Z 76fda28a-48c9-11e8-89a8-49c8a266fc3e Zappa Event: {}
[1524689315631] [DEBUG] 2018-04-25T20:48:35.607Z 05f3fd90-48ca-11e8-9813-05d86522d6eb Zappa Event: {'time': '2018-04-25T20:48:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'a5c56302-47de-a14b-8b34-603d8e0e61cf', 'kwargs': {}}
[1524689315632] [DEBUG] 2018-04-25T20:48:35.631Z 05f3fd90-48ca-11e8-9813-05d86522d6eb Zappa Event: {}
[1524689556371] [DEBUG] 2018-04-25T20:52:36.355Z 95670423-48ca-11e8-a7b4-23fc6fb720ab Zappa Event: {'time': '2018-04-25T20:52:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '3cd13681-75f7-77c0-a2e0-8f52cff0423c', 'kwargs': {}}
[1524689556372] [DEBUG] 2018-04-25T20:52:36.371Z 95670423-48ca-11e8-a7b4-23fc6fb720ab Zappa Event: {}
[1524689795671] [DEBUG] 2018-04-25T20:56:35.668Z 240cf58d-48cb-11e8-b0a8-e3b377467d63 Zappa Event: {'time': '2018-04-25T20:56:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'bd6b54b0-74df-6f68-574a-0b910e496c30', 'kwargs': {}}
[1524689795671] [DEBUG] 2018-04-25T20:56:35.669Z 240cf58d-48cb-11e8-b0a8-e3b377467d63 Zappa Event: {}
[1524690035900] [DEBUG] 2018-04-25T21:00:35.900Z b3442a4d-48cb-11e8-b50b-fd22d03a413e Zappa Event: {'time': '2018-04-25T21:00:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '9f7ab95e-b725-2d22-92de-efc0eab08de0', 'kwargs': {}}
[1524690035911] [DEBUG] 2018-04-25T21:00:35.911Z b3442a4d-48cb-11e8-b50b-fd22d03a413e Zappa Event: {}
[1524690276472] [DEBUG] 2018-04-25T21:04:36.471Z 42a88ad6-48cc-11e8-a6c6-0d5ab6e28e24 Zappa Event: {'time': '2018-04-25T21:04:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '13652c8e-9433-d25c-87a1-8e5f00516d34', 'kwargs': {}}
[1524690276472] [DEBUG] 2018-04-25T21:04:36.472Z 42a88ad6-48cc-11e8-a6c6-0d5ab6e28e24 Zappa Event: {}
[1524690373384] Instancing..
[1524690373388] [DEBUG] 2018-04-25T21:06:13.388Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373388] [DEBUG] 2018-04-25T21:06:13.388Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable config_file from defaults.
[1524690373388] [DEBUG] 2018-04-25T21:06:13.388Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable credentials_file from defaults.
[1524690373388] [DEBUG] 2018-04-25T21:06:13.388Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable data_path from defaults.
[1524690373392] [DEBUG] 2018-04-25T21:06:13.392Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading JSON file: /var/task/boto3/data/s3/2006-03-01/resources-1.json
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable region from environment with value 'us-east-1'.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable ca_bundle from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable credentials_file from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable config_file from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable metadata_service_timeout from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373394] [DEBUG] 2018-04-25T21:06:13.394Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable metadata_service_num_attempts from defaults.
[1524690373417] [DEBUG] 2018-04-25T21:06:13.417Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373417] [DEBUG] 2018-04-25T21:06:13.417Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Looking for credentials via: env
[1524690373417] [INFO] 2018-04-25T21:06:13.417Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Found credentials in environment variables.
[1524690373417] [DEBUG] 2018-04-25T21:06:13.417Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading JSON file: /var/task/botocore/data/endpoints.json
[1524690373434] [DEBUG] 2018-04-25T21:06:13.434Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading variable profile from defaults.
[1524690373434] [DEBUG] 2018-04-25T21:06:13.434Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f3c8cd30d08>
[1524690373438] [DEBUG] 2018-04-25T21:06:13.438Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading JSON file: /var/task/botocore/data/s3/2006-03-01/service-2.json
[1524690373474] [DEBUG] 2018-04-25T21:06:13.474Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f3c8ca83bf8>
[1524690373474] [DEBUG] 2018-04-25T21:06:13.474Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7f3c8c80d730>
[1524690373599] [DEBUG] 2018-04-25T21:06:13.599Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f3c8ca839d8>
[1524690373612] [DEBUG] 2018-04-25T21:06:13.611Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a The s3 config key is not a dictionary type, ignoring its value of: None
[1524690373631] [DEBUG] 2018-04-25T21:06:13.631Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Setting s3 timeout as (60, 60)
[1524690373632] [DEBUG] 2018-04-25T21:06:13.632Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading JSON file: /var/task/botocore/data/_retry.json
[1524690373633] [DEBUG] 2018-04-25T21:06:13.632Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Registering retry handlers for service: s3
[1524690373633] [DEBUG] 2018-04-25T21:06:13.633Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Defaulting to S3 virtual host style addressing with path style addressing fallback.
[1524690373633] [DEBUG] 2018-04-25T21:06:13.633Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading s3:s3
[1524690373634] [DEBUG] 2018-04-25T21:06:13.634Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Loading s3:Object
[1524690373652] [DEBUG] 2018-04-25T21:06:13.652Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event creating-resource-class.s3.Object: calling handler <function lazy_call.<locals>._handler at 0x7f3c8c818378>
[1524690373652] [DEBUG] 2018-04-25T21:06:13.652Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Calling s3:get_object with {'Bucket': 'zappa-1wdf1h051', 'Key': 'dev_serverless-mach_current_project.tar.gz'}
[1524690373652] [DEBUG] 2018-04-25T21:06:13.652Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7f3c8cd39488>
[1524690373653] [DEBUG] 2018-04-25T21:06:13.653Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7f3c8cd39400>
[1524690373653] [DEBUG] 2018-04-25T21:06:13.653Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7f3c8c4e2908>>
[1524690373653] [DEBUG] 2018-04-25T21:06:13.653Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7f3c8cd39048>
[1524690373653] [DEBUG] 2018-04-25T21:06:13.653Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7f3c8cd398c8>
[1524690373653] [DEBUG] 2018-04-25T21:06:13.653Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-call.s3.GetObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7f3c8c4e2908>>
[1524690373654] [DEBUG] 2018-04-25T21:06:13.653Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Making request for OperationModel(name=GetObject) (verify_ssl=True) with params: {'url_path': '/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.7.9 Python/3.6.1 Linux/4.9.91-40.57.amzn1.x86_64 exec-env/AWS_Lambda_python3.6 Botocore/1.10.9 Resource'}, 'body': b'', 'url': 'https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x7f3c8c54d198>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'zappa-1wdf1h051'}}}
[1524690373654] [DEBUG] 2018-04-25T21:06:13.654Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f3c8c53a7b8>>
[1524690373654] [DEBUG] 2018-04-25T21:06:13.654Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event choose-signer.s3.GetObject: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7f3c8cbd1908>>
[1524690373654] [DEBUG] 2018-04-25T21:06:13.654Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7f3c8cd37ea0>
[1524690373654] [DEBUG] 2018-04-25T21:06:13.654Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event before-sign.s3.GetObject: calling handler <function fix_s3_host at 0x7f3c8caa5158>
[1524690373654] [DEBUG] 2018-04-25T21:06:13.654Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Checking for DNS compatible bucket for: https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz
[1524690373654] [DEBUG] 2018-04-25T21:06:13.654Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a URI updated to: https://zappa-1wdf1h051.s3.amazonaws.com/dev_serverless-mach_current_project.tar.gz
[1524690373655] [DEBUG] 2018-04-25T21:06:13.655Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Calculating signature using v4 auth.
[1524690373655] [DEBUG] 2018-04-25T21:06:13.655Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a CanonicalRequest:
GET
/dev_serverless-mach_current_project.tar.gz
host:zappa-1wdf1h051.s3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20180425T210613Z
host;x-amz-content-sha256;x-amz-date;
[1524690373655] [DEBUG] 2018-04-25T21:06:13.655Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a StringToSign:
AWS4-HMAC-SHA256
20180425T210613Z
20180425/us-east-1/s3/aws4_request
9a7dc150bc779c1f7ac9bf8db1638858a6f39872201f6ee23f42095c93c79178
[1524690373655] [DEBUG] 2018-04-25T21:06:13.655Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Signature:
9c87139a6a4cc05b185155770e21a8c650284ddceb69daae8f457cbd8645b73f
[1524690373672] [DEBUG] 2018-04-25T21:06:13.672Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Sending http request: <PreparedRequest [GET]>
[1524690373673] [INFO] 2018-04-25T21:06:13.673Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Starting new HTTPS connection (1): zappa-1wdf1h051.s3.amazonaws.com
[1524690373793] [DEBUG] 2018-04-25T21:06:13.792Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a "GET /dev_serverless-mach_current_project.tar.gz HTTP/1.1" 200 79063037
[1524690373793] [DEBUG] 2018-04-25T21:06:13.793Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Response headers: {'x-amz-id-2': 'ykNEaK1HDjOxAijLMY1Ioq/ui72qlMwJ+UndgCbXm9FpHLinwa57twKgCuwAy9P5Hkr8dQfzkDE=', 'x-amz-request-id': '888D73536024356D', 'date': 'Wed, 25 Apr 2018 21:06:14 GMT', 'last-modified': 'Wed, 25 Apr 2018 21:06:08 GMT', 'etag': '"52826bc1ccd69592dc4685e788db4f84-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79063037', 'server': 'AmazonS3'}
[1524690373794] [DEBUG] 2018-04-25T21:06:13.793Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Response body:
<botocore.response.StreamingBody object at 0x7f3c8c491a58>
[1524690373794] [DEBUG] 2018-04-25T21:06:13.794Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event needs-retry.s3.GetObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7f3c8c4e2048>
[1524690373794] [DEBUG] 2018-04-25T21:06:13.794Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a No retry needed.
[1524690373794] [DEBUG] 2018-04-25T21:06:13.794Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7f3c8c4e2908>>
[1524690373795] [DEBUG] 2018-04-25T21:06:13.794Z 7be2f5f3-48cc-11e8-9765-3fb1f351243a Response: {'ResponseMetadata': {'RequestId': '888D73536024356D', 'HostId': 'ykNEaK1HDjOxAijLMY1Ioq/ui72qlMwJ+UndgCbXm9FpHLinwa57twKgCuwAy9P5Hkr8dQfzkDE=', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': 'ykNEaK1HDjOxAijLMY1Ioq/ui72qlMwJ+UndgCbXm9FpHLinwa57twKgCuwAy9P5Hkr8dQfzkDE=', 'x-amz-request-id': '888D73536024356D', 'date': 'Wed, 25 Apr 2018 21:06:14 GMT', 'last-modified': 'Wed, 25 Apr 2018 21:06:08 GMT', 'etag': '"52826bc1ccd69592dc4685e788db4f84-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79063037', 'server': 'AmazonS3'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes', 'LastModified': datetime.datetime(2018, 4, 25, 21, 6, 8, tzinfo=tzutc()), 'ContentLength': 79063037, 'ETag': '"52826bc1ccd69592dc4685e788db4f84-10"', 'ContentType': 'binary/octet-stream', 'Metadata': {}, 'Body': <botocore.response.StreamingBody object at 0x7f3c8c491a58>}
[1524690384385] Failed to find library...right filename?
[1524690384395] module 'api' has no attribute 'app': AttributeError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 132, in __init__
wsgi_app_function = getattr(self.app_module, self.settings.APP_FUNCTION)
AttributeError: module 'api' has no attribute 'app'
[1524690401358] [DEBUG] 2018-04-25T21:06:41.358Z 8d209123-48cc-11e8-8593-e1fa8c628f87 Zappa Event: {'resource': '/', 'path': '/', 'httpMethod': 'POST', 'headers': {'Accept': 'application/json, */*', 'Accept-Encoding': 'gzip, deflate', '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-Country': 'US', 'Content-Type': 'application/json', 'Host': 'k1clveeod1.execute-api.us-east-1.amazonaws.com', 'User-Agent': 'HTTPie/0.9.9', 'Via': '1.1 8b80cfad007948900303ef793b88e687.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': 'teo_gTAxfb-I2fRYCjN-XQAzRYi073vkHCuOzTarXRBmJsf57rNsXw==', 'X-Amzn-Trace-Id': 'Root=1-5ae0ede1-c9f321ba7b6e19ac21d003a6', 'X-Forwarded-For': '204.9.220.50, 52.46.29.6', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https'}, 'queryStringParameters': None, 'pathParameters': None, 'stageVariables': None, 'requestContext': {'resourceId': '4p6uj8w403', 'resourcePath': '/', 'httpMethod': 'POST', 'extendedRequestId': 'F6obMEpHIAMFW6w=', 'requestTime': '25/Apr/2018:21:06:41 +0000', 'path': '/dev', 'accountId': '084485918776', 'protocol': 'HTTP/1.1', 'stage': 'dev', 'requestTimeEpoch': 1524690401254, 'requestId': '8d18c901-48cc-11e8-9d4a-25c42512e45e', 'identity': {'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'sourceIp': '204.9.220.50', 'accessKey': None, 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'HTTPie/0.9.9', 'user': None}, 'apiId': 'k1clveeod1'}, 'body': 'ewogICJkYXRhIjogWwogICAgWwogICAgICA2LjIsCiAgICAgIDMuNAogICAgXSwKICAgIFsKICAgICAgNi4yLAogICAgICAxCiAgICBdCiAgXQp9', 'isBase64Encoded': True}
[1524690401395] 'NoneType' object is not callable
[1524690516443] [DEBUG] 2018-04-25T21:08:36.443Z d1aacd38-48cc-11e8-a725-d902cf42fd74 Zappa Event: {'time': '2018-04-25T21:08:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'db294d31-37c0-f617-e20f-c53cb7cdc049', 'kwargs': {}}
[1524690516451] [DEBUG] 2018-04-25T21:08:36.451Z d1aacd38-48cc-11e8-a725-d902cf42fd74 Zappa Event: {}
[1524690755871] [DEBUG] 2018-04-25T21:12:35.868Z 6060c495-48cd-11e8-ae0c-b7b92d2fbd7b Zappa Event: {'time': '2018-04-25T21:12:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '6547d1ad-4763-d8db-4652-e409448c996f', 'kwargs': {}}
[1524690755871] [DEBUG] 2018-04-25T21:12:35.869Z 6060c495-48cd-11e8-ae0c-b7b92d2fbd7b Zappa Event: {}
[1524690996991] [DEBUG] 2018-04-25T21:16:36.983Z f0195ea7-48cd-11e8-8d58-0f2e3a06e5fe Zappa Event: {'time': '2018-04-25T21:16:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '174a680c-88f5-57fb-c427-96d5753147e2', 'kwargs': {}}
[1524690996991] [DEBUG] 2018-04-25T21:16:36.983Z f0195ea7-48cd-11e8-8d58-0f2e3a06e5fe Zappa Event: {}
[1524691111445] Instancing..
[1524691111448] [DEBUG] 2018-04-25T21:18:31.448Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111448] [DEBUG] 2018-04-25T21:18:31.448Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable config_file from defaults.
[1524691111448] [DEBUG] 2018-04-25T21:18:31.448Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable credentials_file from defaults.
[1524691111449] [DEBUG] 2018-04-25T21:18:31.448Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable data_path from defaults.
[1524691111452] [DEBUG] 2018-04-25T21:18:31.452Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading JSON file: /var/task/boto3/data/s3/2006-03-01/resources-1.json
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable region from environment with value 'us-east-1'.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable ca_bundle from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable credentials_file from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable config_file from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable metadata_service_timeout from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111454] [DEBUG] 2018-04-25T21:18:31.454Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable metadata_service_num_attempts from defaults.
[1524691111479] [DEBUG] 2018-04-25T21:18:31.479Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111479] [DEBUG] 2018-04-25T21:18:31.479Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Looking for credentials via: env
[1524691111480] [INFO] 2018-04-25T21:18:31.479Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Found credentials in environment variables.
[1524691111480] [DEBUG] 2018-04-25T21:18:31.480Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading JSON file: /var/task/botocore/data/endpoints.json
[1524691111492] [DEBUG] 2018-04-25T21:18:31.492Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading variable profile from defaults.
[1524691111492] [DEBUG] 2018-04-25T21:18:31.492Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f2fbc8d5d08>
[1524691111512] [DEBUG] 2018-04-25T21:18:31.512Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading JSON file: /var/task/botocore/data/s3/2006-03-01/service-2.json
[1524691111536] [DEBUG] 2018-04-25T21:18:31.536Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f2fbc628bf8>
[1524691111536] [DEBUG] 2018-04-25T21:18:31.536Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7f2fbc3b2730>
[1524691111654] [DEBUG] 2018-04-25T21:18:31.654Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f2fbc6289d8>
[1524691111655] [DEBUG] 2018-04-25T21:18:31.654Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 The s3 config key is not a dictionary type, ignoring its value of: None
[1524691111674] [DEBUG] 2018-04-25T21:18:31.674Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Setting s3 timeout as (60, 60)
[1524691111675] [DEBUG] 2018-04-25T21:18:31.675Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading JSON file: /var/task/botocore/data/_retry.json
[1524691111692] [DEBUG] 2018-04-25T21:18:31.691Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Registering retry handlers for service: s3
[1524691111692] [DEBUG] 2018-04-25T21:18:31.692Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Defaulting to S3 virtual host style addressing with path style addressing fallback.
[1524691111692] [DEBUG] 2018-04-25T21:18:31.692Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading s3:s3
[1524691111693] [DEBUG] 2018-04-25T21:18:31.693Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Loading s3:Object
[1524691111695] [DEBUG] 2018-04-25T21:18:31.695Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event creating-resource-class.s3.Object: calling handler <function lazy_call.<locals>._handler at 0x7f2fbc3bd378>
[1524691111695] [DEBUG] 2018-04-25T21:18:31.695Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Calling s3:get_object with {'Bucket': 'zappa-1wdf1h051', 'Key': 'dev_serverless-mach_current_project.tar.gz'}
[1524691111711] [DEBUG] 2018-04-25T21:18:31.711Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7f2fbc8de488>
[1524691111711] [DEBUG] 2018-04-25T21:18:31.711Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7f2fbc8de400>
[1524691111712] [DEBUG] 2018-04-25T21:18:31.711Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7f2fbc084940>>
[1524691111712] [DEBUG] 2018-04-25T21:18:31.712Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7f2fbc8de048>
[1524691111712] [DEBUG] 2018-04-25T21:18:31.712Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7f2fbc8de8c8>
[1524691111712] [DEBUG] 2018-04-25T21:18:31.712Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-call.s3.GetObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7f2fbc084940>>
[1524691111713] [DEBUG] 2018-04-25T21:18:31.712Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Making request for OperationModel(name=GetObject) (verify_ssl=True) with params: {'url_path': '/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.7.9 Python/3.6.1 Linux/4.9.91-40.57.amzn1.x86_64 exec-env/AWS_Lambda_python3.6 Botocore/1.10.9 Resource'}, 'body': b'', 'url': 'https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x7f2fbc0f2240>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'zappa-1wdf1h051'}}}
[1524691111713] [DEBUG] 2018-04-25T21:18:31.712Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f2fbc0df860>>
[1524691111713] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event choose-signer.s3.GetObject: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7f2fbc776978>>
[1524691111713] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7f2fbc8dcea0>
[1524691111713] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event before-sign.s3.GetObject: calling handler <function fix_s3_host at 0x7f2fbc64a158>
[1524691111713] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Checking for DNS compatible bucket for: https://s3.amazonaws.com/zappa-1wdf1h051/dev_serverless-mach_current_project.tar.gz
[1524691111713] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 URI updated to: https://zappa-1wdf1h051.s3.amazonaws.com/dev_serverless-mach_current_project.tar.gz
[1524691111713] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Calculating signature using v4 auth.
[1524691111714] [DEBUG] 2018-04-25T21:18:31.713Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 CanonicalRequest:
GET
/dev_serverless-mach_current_project.tar.gz
host:zappa-1wdf1h051.s3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20180425T211831Z
[1524691111714] [DEBUG] 2018-04-25T21:18:31.714Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 StringToSign:
AWS4-HMAC-SHA256
20180425T211831Z
20180425/us-east-1/s3/aws4_request
c75af3b24f61ae23cac515b54b7bcb6fccbdd649df883cfffb21effc587dabff
[1524691111714] [DEBUG] 2018-04-25T21:18:31.714Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Signature:
d86f77bccb2e54f15f43e502b3d8e4dc8d3a5dc282962e3a519b3ebff1840705
[1524691111718] [DEBUG] 2018-04-25T21:18:31.718Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Sending http request: <PreparedRequest [GET]>
[1524691111731] [INFO] 2018-04-25T21:18:31.731Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Starting new HTTPS connection (1): zappa-1wdf1h051.s3.amazonaws.com
[1524691111806] [DEBUG] 2018-04-25T21:18:31.805Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 "GET /dev_serverless-mach_current_project.tar.gz HTTP/1.1" 200 79063030
[1524691111806] [DEBUG] 2018-04-25T21:18:31.806Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Response headers: {'x-amz-id-2': '2616MxujnDwmWsUXuX4H2nx1GZUDO+3VwVcHeiKgUxsIMPsydOadiXPMbDZewiU2UIb2p1aNuy8=', 'x-amz-request-id': '2DC31DEA30858C79', 'date': 'Wed, 25 Apr 2018 21:18:32 GMT', 'last-modified': 'Wed, 25 Apr 2018 21:18:24 GMT', 'etag': '"1ae8c905089ae99626c3d6849c2d95c9-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79063030', 'server': 'AmazonS3'}
[1524691111806] [DEBUG] 2018-04-25T21:18:31.806Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Response body:
<botocore.response.StreamingBody object at 0x7f2fbc036a90>
[1524691111807] [DEBUG] 2018-04-25T21:18:31.807Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event needs-retry.s3.GetObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7f2fbc084080>
[1524691111807] [DEBUG] 2018-04-25T21:18:31.807Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 No retry needed.
[1524691111807] [DEBUG] 2018-04-25T21:18:31.807Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7f2fbc084940>>
[1524691111807] [DEBUG] 2018-04-25T21:18:31.807Z 33cee5aa-48ce-11e8-a8f3-3383b9544a01 Response: {'ResponseMetadata': {'RequestId': '2DC31DEA30858C79', 'HostId': '2616MxujnDwmWsUXuX4H2nx1GZUDO+3VwVcHeiKgUxsIMPsydOadiXPMbDZewiU2UIb2p1aNuy8=', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': '2616MxujnDwmWsUXuX4H2nx1GZUDO+3VwVcHeiKgUxsIMPsydOadiXPMbDZewiU2UIb2p1aNuy8=', 'x-amz-request-id': '2DC31DEA30858C79', 'date': 'Wed, 25 Apr 2018 21:18:32 GMT', 'last-modified': 'Wed, 25 Apr 2018 21:18:24 GMT', 'etag': '"1ae8c905089ae99626c3d6849c2d95c9-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79063030', 'server': 'AmazonS3'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes', 'LastModified': datetime.datetime(2018, 4, 25, 21, 18, 24, tzinfo=tzutc()), 'ContentLength': 79063030, 'ETag': '"1ae8c905089ae99626c3d6849c2d95c9-10"', 'ContentType': 'binary/octet-stream', 'Metadata': {}, 'Body': <botocore.response.StreamingBody object at 0x7f2fbc036a90>}
[1524691124202] Failed to find library...right filename?
[1524691124232] No module named 'api.app': ModuleNotFoundError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 129, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.app'
[1524691162775] [DEBUG] 2018-04-25T21:19:22.773Z 52f6d137-48ce-11e8-b812-e1a9408bd2f8 Zappa Event: {'resource': '/', 'path': '/', 'httpMethod': 'POST', 'headers': {'Accept': 'application/json, */*', 'Accept-Encoding': 'gzip, deflate', '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-Country': 'US', 'Content-Type': 'application/json', 'Host': 'k1clveeod1.execute-api.us-east-1.amazonaws.com', 'User-Agent': 'HTTPie/0.9.9', 'Via': '1.1 8b80cfad007948900303ef793b88e687.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': 'K5N5jcepItzwLZKz9YikRvsanOF-gvYAo6jYmPz5JNjNc7T_c6bS_w==', 'X-Amzn-Trace-Id': 'Root=1-5ae0f0da-8f88a982d8926112cf2aa3f6', 'X-Forwarded-For': '204.9.220.50, 52.46.29.12', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https'}, 'queryStringParameters': None, 'pathParameters': None, 'stageVariables': None, 'requestContext': {'resourceId': '4p6uj8w403', 'resourcePath': '/', 'httpMethod': 'POST', 'extendedRequestId': 'F6qSKGZQoAMFe5Q=', 'requestTime': '25/Apr/2018:21:19:22 +0000', 'path': '/dev', 'accountId': '084485918776', 'protocol': 'HTTP/1.1', 'stage': 'dev', 'requestTimeEpoch': 1524691162683, 'requestId': '52f1a138-48ce-11e8-91d7-6113db5e250e', 'identity': {'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'sourceIp': '204.9.220.50', 'accessKey': None, 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'HTTPie/0.9.9', 'user': None}, 'apiId': 'k1clveeod1'}, 'body': 'ewogICJkYXRhIjogWwogICAgWwogICAgICA2LjIsCiAgICAgIDMuNAogICAgXSwKICAgIFsKICAgICAgNi4yLAogICAgICAxCiAgICBdCiAgXQp9', 'isBase64Encoded': True}
[1524691162793] 'NoneType' object is not callable
[1524691236632] [DEBUG] 2018-04-25T21:20:36.631Z 7ef8fe1a-48ce-11e8-85cc-a9fd62fe62c0 Zappa Event: {'time': '2018-04-25T21:20:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '9a38f75a-c7f9-4a7a-7c45-74aff24d36f6', 'kwargs': {}}
[1524691236632] [DEBUG] 2018-04-25T21:20:36.632Z 7ef8fe1a-48ce-11e8-85cc-a9fd62fe62c0 Zappa Event: {}
[1524691475491] [DEBUG] 2018-04-25T21:24:35.477Z 0d54eecd-48cf-11e8-a7cc-5fbcae8b3e05 Zappa Event: {'time': '2018-04-25T21:24:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '59b05eea-5b65-d7e4-43c2-f50fb7c42629', 'kwargs': {}}
[1524691475491] [DEBUG] 2018-04-25T21:24:35.477Z 0d54eecd-48cf-11e8-a7cc-5fbcae8b3e05 Zappa Event: {}
[1524691715831] [DEBUG] 2018-04-25T21:28:35.814Z 9c91a1c1-48cf-11e8-8ba6-b7105df1b4fd Zappa Event: {'time': '2018-04-25T21:28:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '891119a0-453c-304b-4d1d-8388b8357bb3', 'kwargs': {}}
[1524691715831] [DEBUG] 2018-04-25T21:28:35.815Z 9c91a1c1-48cf-11e8-8ba6-b7105df1b4fd Zappa Event: {}
[1524691956370] [DEBUG] 2018-04-25T21:32:36.370Z 2bf53df6-48d0-11e8-9e52-c3779269baa3 Zappa Event: {'time': '2018-04-25T21:32:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'ee6fd6b3-c924-1026-5cda-8740923ad642', 'kwargs': {}}
[1524691956370] [DEBUG] 2018-04-25T21:32:36.370Z 2bf53df6-48d0-11e8-9e52-c3779269baa3 Zappa Event: {}
[1524692195738] [DEBUG] 2018-04-25T21:36:35.738Z baa14acb-48d0-11e8-9201-854e6b6f8c54 Zappa Event: {'time': '2018-04-25T21:36:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'f9d382d7-9719-7109-800b-f44151a93abc', 'kwargs': {}}
[1524692195739] [DEBUG] 2018-04-25T21:36:35.738Z baa14acb-48d0-11e8-9201-854e6b6f8c54 Zappa Event: {}
[1524692436351] [DEBUG] 2018-04-25T21:40:36.340Z 4a0d729f-48d1-11e8-b8da-17e608dcc280 Zappa Event: {'time': '2018-04-25T21:40:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'da383456-b2e9-b6fe-f432-d0595ffca15d', 'kwargs': {}}
[1524692436351] [DEBUG] 2018-04-25T21:40:36.340Z 4a0d729f-48d1-11e8-b8da-17e608dcc280 Zappa Event: {}
[1524692676091] [DEBUG] 2018-04-25T21:44:36.76Z d8f0e2b7-48d1-11e8-9afb-11a6733109d0 Zappa Event: {'time': '2018-04-25T21:44:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '51027024-8b02-065e-8881-2e8d376feb69', 'kwargs': {}}
[1524692676091] [DEBUG] 2018-04-25T21:44:36.76Z d8f0e2b7-48d1-11e8-9afb-11a6733109d0 Zappa Event: {}
[1524692916471] [DEBUG] 2018-04-25T21:48:36.465Z 6836e4aa-48d2-11e8-bb50-17bf990470f6 Zappa Event: {'time': '2018-04-25T21:48:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'c06fe466-38c8-70d2-6388-b0a1903bb2a1', 'kwargs': {}}
[1524692916471] [DEBUG] 2018-04-25T21:48:36.466Z 6836e4aa-48d2-11e8-bb50-17bf990470f6 Zappa Event: {}
[1524693156071] [DEBUG] 2018-04-25T21:52:36.68Z f705e28a-48d2-11e8-bd2d-176723196228 Zappa Event: {'time': '2018-04-25T21:52:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '1c85872b-38e1-8ed6-d878-75f545305eb2', 'kwargs': {}}
[1524693156071] [DEBUG] 2018-04-25T21:52:36.68Z f705e28a-48d2-11e8-bd2d-176723196228 Zappa Event: {}
[1524693282702] Instancing..
[1524693282705] [DEBUG] 2018-04-25T21:54:42.705Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282705] [DEBUG] 2018-04-25T21:54:42.705Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable config_file from defaults.
[1524693282706] [DEBUG] 2018-04-25T21:54:42.705Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable credentials_file from defaults.
[1524693282706] [DEBUG] 2018-04-25T21:54:42.706Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable data_path from defaults.
[1524693282714] [DEBUG] 2018-04-25T21:54:42.714Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading JSON file: /var/task/boto3/data/s3/2006-03-01/resources-1.json
[1524693282715] [DEBUG] 2018-04-25T21:54:42.715Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable region from environment with value 'us-east-1'.
[1524693282715] [DEBUG] 2018-04-25T21:54:42.715Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282715] [DEBUG] 2018-04-25T21:54:42.715Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable ca_bundle from defaults.
[1524693282715] [DEBUG] 2018-04-25T21:54:42.715Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282715] [DEBUG] 2018-04-25T21:54:42.715Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable credentials_file from defaults.
[1524693282716] [DEBUG] 2018-04-25T21:54:42.715Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable config_file from defaults.
[1524693282716] [DEBUG] 2018-04-25T21:54:42.716Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282716] [DEBUG] 2018-04-25T21:54:42.716Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable metadata_service_timeout from defaults.
[1524693282716] [DEBUG] 2018-04-25T21:54:42.716Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282716] [DEBUG] 2018-04-25T21:54:42.716Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable metadata_service_num_attempts from defaults.
[1524693282737] [DEBUG] 2018-04-25T21:54:42.737Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282737] [DEBUG] 2018-04-25T21:54:42.737Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Looking for credentials via: env
[1524693282737] [INFO] 2018-04-25T21:54:42.737Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Found credentials in environment variables.
[1524693282737] [DEBUG] 2018-04-25T21:54:42.737Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading JSON file: /var/task/botocore/data/endpoints.json
[1524693282754] [DEBUG] 2018-04-25T21:54:42.753Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading variable profile from defaults.
[1524693282754] [DEBUG] 2018-04-25T21:54:42.754Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fb545608d08>
[1524693282774] [DEBUG] 2018-04-25T21:54:42.774Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading JSON file: /var/task/botocore/data/s3/2006-03-01/service-2.json
[1524693282794] [DEBUG] 2018-04-25T21:54:42.793Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7fb54535bbf8>
[1524693282794] [DEBUG] 2018-04-25T21:54:42.794Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7fb5450e5730>
[1524693282933] [DEBUG] 2018-04-25T21:54:42.933Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7fb54535b9d8>
[1524693282933] [DEBUG] 2018-04-25T21:54:42.933Z 41f95aeb-48d3-11e8-bc09-3fec22367389 The s3 config key is not a dictionary type, ignoring its value of: None
[1524693282954] [DEBUG] 2018-04-25T21:54:42.953Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Setting s3 timeout as (60, 60)
[1524693282954] [DEBUG] 2018-04-25T21:54:42.954Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading JSON file: /var/task/botocore/data/_retry.json
[1524693282954] [DEBUG] 2018-04-25T21:54:42.954Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Registering retry handlers for service: s3
[1524693282955] [DEBUG] 2018-04-25T21:54:42.955Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Defaulting to S3 virtual host style addressing with path style addressing fallback.
[1524693282971] [DEBUG] 2018-04-25T21:54:42.971Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading s3:s3
[1524693282973] [DEBUG] 2018-04-25T21:54:42.973Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Loading s3:Object
[1524693282974] [DEBUG] 2018-04-25T21:54:42.974Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event creating-resource-class.s3.Object: calling handler <function lazy_call.<locals>._handler at 0x7fb5450f0378>
[1524693282974] [DEBUG] 2018-04-25T21:54:42.974Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Calling s3:get_object with {'Bucket': 'zappa-47z0mcb4y', 'Key': 'dev_serverless-mach_current_project.tar.gz'}
[1524693282974] [DEBUG] 2018-04-25T21:54:42.974Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-parameter-build.s3.GetObject: calling handler <function sse_md5 at 0x7fb545611488>
[1524693282974] [DEBUG] 2018-04-25T21:54:42.974Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-parameter-build.s3.GetObject: calling handler <function validate_bucket_name at 0x7fb545611400>
[1524693282975] [DEBUG] 2018-04-25T21:54:42.974Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-parameter-build.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7fb544dba978>>
[1524693282975] [DEBUG] 2018-04-25T21:54:42.975Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-parameter-build.s3.GetObject: calling handler <function generate_idempotent_uuid at 0x7fb545611048>
[1524693282975] [DEBUG] 2018-04-25T21:54:42.975Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-call.s3.GetObject: calling handler <function add_expect_header at 0x7fb5456118c8>
[1524693282975] [DEBUG] 2018-04-25T21:54:42.975Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-call.s3.GetObject: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7fb544dba978>>
[1524693282976] [DEBUG] 2018-04-25T21:54:42.975Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Making request for OperationModel(name=GetObject) (verify_ssl=True) with params: {'url_path': '/zappa-47z0mcb4y/dev_serverless-mach_current_project.tar.gz', 'query_string': {}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.7.9 Python/3.6.1 Linux/4.9.91-40.57.amzn1.x86_64 exec-env/AWS_Lambda_python3.6 Botocore/1.10.9 Resource'}, 'body': b'', 'url': 'https://s3.amazonaws.com/zappa-47z0mcb4y/dev_serverless-mach_current_project.tar.gz', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x7fb544e25240>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'zappa-47z0mcb4y'}}}
[1524693282976] [DEBUG] 2018-04-25T21:54:42.976Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event request-created.s3.GetObject: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fb544e12860>>
[1524693282976] [DEBUG] 2018-04-25T21:54:42.976Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event choose-signer.s3.GetObject: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7fb5454a9978>>
[1524693282976] [DEBUG] 2018-04-25T21:54:42.976Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event choose-signer.s3.GetObject: calling handler <function set_operation_specific_signer at 0x7fb54560fea0>
[1524693282976] [DEBUG] 2018-04-25T21:54:42.976Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event before-sign.s3.GetObject: calling handler <function fix_s3_host at 0x7fb54537d158>
[1524693282976] [DEBUG] 2018-04-25T21:54:42.976Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Checking for DNS compatible bucket for: https://s3.amazonaws.com/zappa-47z0mcb4y/dev_serverless-mach_current_project.tar.gz
[1524693282976] [DEBUG] 2018-04-25T21:54:42.976Z 41f95aeb-48d3-11e8-bc09-3fec22367389 URI updated to: https://zappa-47z0mcb4y.s3.amazonaws.com/dev_serverless-mach_current_project.tar.gz
[1524693282977] [DEBUG] 2018-04-25T21:54:42.977Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Calculating signature using v4 auth.
[1524693282977] [DEBUG] 2018-04-25T21:54:42.977Z 41f95aeb-48d3-11e8-bc09-3fec22367389 CanonicalRequest:
GET
/dev_serverless-mach_current_project.tar.gz
host:zappa-47z0mcb4y.s3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20180425T215442Z
[1524693282977] [DEBUG] 2018-04-25T21:54:42.977Z 41f95aeb-48d3-11e8-bc09-3fec22367389 StringToSign:
AWS4-HMAC-SHA256
20180425T215442Z
20180425/us-east-1/s3/aws4_request
13516af12b923bb32074163d7a61ed3e6b841648379f28927c91afc924d90ba3
[1524693282977] [DEBUG] 2018-04-25T21:54:42.977Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Signature:
05e1b086076fa605473a0d5a3f7e54a3de9ddb526a72f5a9573be4bfab8e52d5
[1524693282994] [DEBUG] 2018-04-25T21:54:42.994Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Sending http request: <PreparedRequest [GET]>
[1524693282995] [INFO] 2018-04-25T21:54:42.995Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Starting new HTTPS connection (1): zappa-47z0mcb4y.s3.amazonaws.com
[1524693283063] [DEBUG] 2018-04-25T21:54:43.63Z 41f95aeb-48d3-11e8-bc09-3fec22367389 "GET /dev_serverless-mach_current_project.tar.gz HTTP/1.1" 200 79062958
[1524693283064] [DEBUG] 2018-04-25T21:54:43.64Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Response headers: {'x-amz-id-2': 'ZkQMeOXa9WmKu4k2SjHLrCmx95guZaTzNQh23PVi0DUxzskiTlQVQWPvz6PfSP6PkzL/X2p0Ows=', 'x-amz-request-id': 'F874D779933B0FEA', 'date': 'Wed, 25 Apr 2018 21:54:44 GMT', 'last-modified': 'Wed, 25 Apr 2018 21:54:36 GMT', 'etag': '"1dbfa9cc127dbd100ded4c3dd0a0265f-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79062958', 'server': 'AmazonS3'}
[1524693283064] [DEBUG] 2018-04-25T21:54:43.64Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Response body:
<botocore.response.StreamingBody object at 0x7fb544d69a90>
[1524693283065] [DEBUG] 2018-04-25T21:54:43.65Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event needs-retry.s3.GetObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7fb544dba0b8>
[1524693283065] [DEBUG] 2018-04-25T21:54:43.65Z 41f95aeb-48d3-11e8-bc09-3fec22367389 No retry needed.
[1524693283065] [DEBUG] 2018-04-25T21:54:43.65Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Event needs-retry.s3.GetObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7fb544dba978>>
[1524693283065] [DEBUG] 2018-04-25T21:54:43.65Z 41f95aeb-48d3-11e8-bc09-3fec22367389 Response: {'ResponseMetadata': {'RequestId': 'F874D779933B0FEA', 'HostId': 'ZkQMeOXa9WmKu4k2SjHLrCmx95guZaTzNQh23PVi0DUxzskiTlQVQWPvz6PfSP6PkzL/X2p0Ows=', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': 'ZkQMeOXa9WmKu4k2SjHLrCmx95guZaTzNQh23PVi0DUxzskiTlQVQWPvz6PfSP6PkzL/X2p0Ows=', 'x-amz-request-id': 'F874D779933B0FEA', 'date': 'Wed, 25 Apr 2018 21:54:44 GMT', 'last-modified': 'Wed, 25 Apr 2018 21:54:36 GMT', 'etag': '"1dbfa9cc127dbd100ded4c3dd0a0265f-10"', 'accept-ranges': 'bytes', 'content-type': 'binary/octet-stream', 'content-length': '79062958', 'server': 'AmazonS3'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes', 'LastModified': datetime.datetime(2018, 4, 25, 21, 54, 36, tzinfo=tzutc()), 'ContentLength': 79062958, 'ETag': '"1dbfa9cc127dbd100ded4c3dd0a0265f-10"', 'ContentType': 'binary/octet-stream', 'Metadata': {}, 'Body': <botocore.response.StreamingBody object at 0x7fb544d69a90>}
[1524693293814] Failed to find library...right filename?
[1524693293836] No module named 'api.app': ModuleNotFoundError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 129, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.app'
[1524693396054] [DEBUG] 2018-04-25T21:56:36.54Z 8616cb07-48d3-11e8-93eb-c3b6508118fa Zappa Event: {'time': '2018-04-25T21:56:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'dac4b397-b585-5746-25b7-28a7d643a0eb', 'kwargs': {}}
[1524693396054] [DEBUG] 2018-04-25T21:56:36.54Z 8616cb07-48d3-11e8-93eb-c3b6508118fa Zappa Event: {}
[1524693615491] [DEBUG] 2018-04-25T22:00:15.485Z 08e8a1a7-48d4-11e8-ba7d-7b998832d872 Zappa Event: {'resource': '/', 'path': '/', 'httpMethod': 'POST', 'headers': {'Accept': 'application/json, */*', 'Accept-Encoding': 'gzip, deflate', '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-Country': 'US', 'Content-Type': 'application/json', 'Host': 'k1clveeod1.execute-api.us-east-1.amazonaws.com', 'User-Agent': 'HTTPie/0.9.9', 'Via': '1.1 a6a098cdc333f9948baa2a00729f4f25.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': 'uHKW8gD1H_v9p6Hnwg06O3U-860yVKgBG8SOjK0lWzsH55amfE39Mw==', 'X-Amzn-Trace-Id': 'Root=1-5ae0fa6f-f99e94b2e28f9b1f762ef39f', 'X-Forwarded-For': '204.9.220.50, 52.46.29.42', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https'}, 'queryStringParameters': None, 'pathParameters': None, 'stageVariables': None, 'requestContext': {'resourceId': '4p6uj8w403', 'resourcePath': '/', 'httpMethod': 'POST', 'extendedRequestId': 'F6wRaFGVIAMFlBw=', 'requestTime': '25/Apr/2018:22:00:15 +0000', 'path': '/dev', 'accountId': '084485918776', 'protocol': 'HTTP/1.1', 'stage': 'dev', 'requestTimeEpoch': 1524693615413, 'requestId': '08e286e1-48d4-11e8-82d1-79cd7fde1af0', 'identity': {'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'sourceIp': '204.9.220.50', 'accessKey': None, 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'HTTPie/0.9.9', 'user': None}, 'apiId': 'k1clveeod1'}, 'body': 'ewogICJkYXRhIjogWwogICAgWwogICAgICA2LjIsCiAgICAgIDMuNAogICAgXSwKICAgIFsKICAgICAgNi4yLAogICAgICAxCiAgICBdCiAgXQp9', 'isBase64Encoded': True}
[1524693615551] 'NoneType' object is not callable
[1524693636255] [DEBUG] 2018-04-25T22:00:36.255Z 15334bd2-48d4-11e8-97e3-d753eb902662 Zappa Event: {'time': '2018-04-25T22:00:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': 'c7c5e2ca-47c8-10d2-5bc8-9ca1696dd64a', 'kwargs': {}}
[1524693636255] [DEBUG] 2018-04-25T22:00:36.255Z 15334bd2-48d4-11e8-97e3-d753eb902662 Zappa Event: {}
[1524693875849] [DEBUG] 2018-04-25T22:04:35.849Z a3fc084e-48d4-11e8-8f21-0d80cc70ac80 Zappa Event: {'time': '2018-04-25T22:04:30Z', 'detail-type': 'Scheduled Event', 'source': 'aws.events', 'account': '084485918776', 'region': 'us-east-1', 'detail': {}, 'version': '0', 'resources': ['arn:aws:events:us-east-1:084485918776:rule/serverless-mach-dev-zappa-keep-warm-handler.keep_warm_callback'], 'id': '60e89f53-3558-53cf-a848-df7333474e73', 'kwargs': {}}
[1524693875849] [DEBUG] 2018-04-25T22:04:35.849Z a3fc084e-48d4-11e8-8f21-0d80cc70ac80 Zappa Event: {}
python 3.6.5
Expected Behavior
I should have recieved the JSON back as I did working locally
Actual Behavior
Possible Fix
Steps to Reproduce
- create a project folder
1.5 create a virtual environment, install
pip install pip==9.0.1 numpy flask zappa sklearn httpie - create an S3 bucket to hold a pickled model, upload model
aws cp model.pkl s3://the-bucket - create a model folder to hold the model python program
- write a model, pickle it
- save pickled model to S3 bucket
- create an api folder
- in api folder, create a app.py flask app
- in main folder, create bin folder
- in bin folder, create sample data json
- test app.py file locally with httpie (http POST localhost:5000 < payload.json)
- zappa init, keep defaults
- add slim_handler: true to zappa_settings file
- run zappa deploy dev
- run http POST (zappa url) < payload.json
- Recieve error
Your Environment
- Zappa version used:
- Operating System and Python version:
- The output of
pip freeze: - Link to your project (optional):
- Your
zappa_settings.py:
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 15 (1 by maintainers)
A short term fix might be deploying from Docker
I re-did everything using just the github example on https://github.com/Miserlou/Zappa/Example
I learned that Zappa’s deployment fails when I include “slim_handler”: “True” in the zappa_settings.json file. This seems related to issue #831 – which wasclosed?
It looks like when using slim_handler, my modules from my virtual environment are missing on the lambda instance? The Zappa example [that I replicated] couldn’t find the Flask module when I included slim_handler, but worked when I deployed without that setting.
I’m on Windows 10, python 3.6
Initial Zappa settings
Deploying without slim_handler
Testing Lambda
Undeploying, going to change zappa settings
New Zappa Settings (with Slim_handler)
Redeploying
Testing Lambda
Folders in project
my_app.py file
Pip Freeze
Zappa tail (Note – Zappa response is cannot find Flask in the Debug comments??)
Any insight into what’s going on here?
Similar problem in #1482 .
When i decompress the tarball on OSX it looks like it keeps the Windows file separators. Not sure if this is an issue on the compression or decompression side.
So the folders might not get recreated on lambda due to the separator difference.