Miserlou / Zappa

Serverless Python
https://blog.zappa.io/
MIT License
11.89k stars 1.21k forks source link

Deployment fails on API Gateway: Invalid API Key identifier specified #1876

Open mxlei01 opened 5 years ago

mxlei01 commented 5 years ago

Context

Zappa deploy fails with an exception:

botocore.errorfactory.NotFoundException: An error occurred (NotFoundException) when calling the UpdateApiKey operation: Invalid API Key identifier specified

Is there anyway to debug this?

Your Environment

Zappa Version: zappa==0.48.2 The configuration file is as follows:

{ "prod": { "app_function": "main.app", "profile_name": "default", "project_name": "some-project-name", "runtime": "python3.7", "s3_bucket": "some-bucket-name", "aws_region": "us-east-1", "apigateway_enabled": true, "api_key_required": true, "api_key": "some-api-key" } }

h-rub commented 1 year ago

@mxlei01 can you fix it?

souravjamwal77 commented 1 year ago

@h-rub Can you retry? Sometimes during deployment, a resource is not created yet and botocore throws NotFoundException.