AWS Lambda Service Исключение при создании слоя с размером файла 232,1 МБ - PullRequest
0 голосов
/ 15 апреля 2020

Я пытаюсь создать aws лямбда-слой с aws -cli / 2.0.7 Python / 3.7.3 Linux / 4.15.0-96-generi c botocore / 2.0.0dev11 и командой.

aws lambda publish-layer-version --layer-name face-extractor-config-2 --debug --content S3Bucket=face-match-data,S3Key=v.0.1.0/config-insightface-params.zip --compatible-runtimes python3.6 python3.7 --cli-connect-timeout 30000

Это мой журнал ошибок.

2020-04-15 13:48:54,114 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.0.7 Python/3.7.3 Linux/4.15.0-96-generic botocore/2.0.0dev11
2020-04-15 13:48:54,115 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['lambda', 'publish-layer-version', '--layer-name', 'face-extractor-config-2', '--debug', '--content', 'S3Bucket=face-match-data,S3Key=v.0.1.0/config-insightface-params.zip', '--compatible-runtimes', 'python3.6', 'python3.7', '--cli-connect-timeout', '30000']
2020-04-15 13:48:54,115 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x7ff3129b2950>
2020-04-15 13:48:54,115 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x7ff3132e8f28>
2020-04-15 13:48:54,115 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x7ff312972c80>
2020-04-15 13:48:54,115 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7ff3132c20d0>
2020-04-15 13:48:54,117 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7ff312b046a8>
2020-04-15 13:48:54,117 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x7ff312b3e0d0>
2020-04-15 13:48:54,121 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.7/dist/botocore/data/lambda/2015-03-31/service-2.json
2020-04-15 13:48:54,128 - MainThread - botocore.hooks - DEBUG - Event building-command-table.lambda: calling handler <function _add_wizard_command at 0x7ff312972488>
2020-04-15 13:48:54,128 - MainThread - botocore.hooks - DEBUG - Event building-command-table.lambda: calling handler <function add_waiters at 0x7ff3129b8d90>
2020-04-15 13:48:54,133 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.7/dist/botocore/data/lambda/2015-03-31/waiters-2.json
2020-04-15 13:48:54,133 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('layer-name', <awscli.arguments.CLIArgument object at 0x7ff3127585f8>), ('description', <awscli.arguments.CLIArgument object at 0x7ff312762358>), ('content', <awscli.arguments.CLIArgument object at 0x7ff3127624a8>), ('compatible-runtimes', <awscli.arguments.ListArgument object at 0x7ff312762470>), ('license-info', <awscli.arguments.CLIArgument object at 0x7ff312762438>)])
2020-04-15 13:48:54,133 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <function add_streaming_output_arg at 0x7ff3129b2bf8>
2020-04-15 13:48:54,133 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <bound method ZipFileArgumentHoister.hoist of <awscli.customizations.awslambda.ZipFileArgumentHoister object at 0x7ff31292a7f0>>
2020-04-15 13:48:54,138 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <function add_cli_input_json at 0x7ff3132c28c8>
2020-04-15 13:48:54,139 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <function add_cli_input_yaml at 0x7ff3132c2f28>
2020-04-15 13:48:54,139 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <function unify_paging_params at 0x7ff312b407b8>
2020-04-15 13:48:54,143 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.7/dist/botocore/data/lambda/2015-03-31/paginators-1.json
2020-04-15 13:48:54,143 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <function add_generate_skeleton at 0x7ff312a1c2f0>
2020-04-15 13:48:54,144 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.lambda.publish-layer-version: calling handler <function add_auto_prompt at 0x7ff312972bf8>
2020-04-15 13:48:54,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.publish-layer-version: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7ff3127624a8>>
2020-04-15 13:48:54,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.publish-layer-version: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7ff3127626d8>>
2020-04-15 13:48:54,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.publish-layer-version: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7ff312762710>>
2020-04-15 13:48:54,144 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.lambda.publish-layer-version: calling handler <bound method AutoPromptArgument.override_required_args of <awscli.customizations.autoprompt.AutoPromptArgument object at 0x7ff312705940>>
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.layer-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.lambda.publish-layer-version: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff31330fcc0>
2020-04-15 13:48:54,145 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'face-extractor-config-2' for parameter "layer_name": 'face-extractor-config-2'
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.description: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.content: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.lambda.publish-layer-version: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff31330fcc0>
2020-04-15 13:48:54,145 - MainThread - awscli.argprocess - DEBUG - Parsing param --content as shorthand
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.compatible-runtimes: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.lambda.publish-layer-version: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff31330fcc0>
2020-04-15 13:48:54,145 - MainThread - awscli.arguments - DEBUG - Unpacked value of ['python3.6', 'python3.7'] for parameter "compatible_runtimes": ['python3.6', 'python3.7']
2020-04-15 13:48:54,145 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.license-info: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.zip-file: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.cli-input-yaml: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.lambda.publish-layer-version.cli-auto-prompt: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3128e42e8>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.publish-layer-version: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7ff3127624a8>>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.publish-layer-version: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7ff3127626d8>>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.publish-layer-version: calling handler <bound method GenerateCliSkeletonArgument.generate_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7ff312762710>>
2020-04-15 13:48:54,146 - MainThread - botocore.hooks - DEBUG - Event calling-command.lambda.publish-layer-version: calling handler <bound method AutoPromptArgument.auto_prompt_arguments of <awscli.customizations.autoprompt.AutoPromptArgument object at 0x7ff312705940>>
2020-04-15 13:48:54,146 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2020-04-15 13:48:54,146 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2020-04-15 13:48:54,146 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role-with-web-identity
2020-04-15 13:48:54,146 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: sso
2020-04-15 13:48:54,146 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2020-04-15 13:48:54,147 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2020-04-15 13:48:54,147 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.7/dist/botocore/data/endpoints.json
2020-04-15 13:48:54,150 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7ff3142ba488>
2020-04-15 13:48:54,152 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x7ff31430c378>
2020-04-15 13:48:54,154 - MainThread - botocore.endpoint - DEBUG - Setting lambda timeout as (30000, 60)
2020-04-15 13:48:54,155 - MainThread - botocore.hooks - DEBUG - Event provide-client-params.lambda.PublishLayerVersion: calling handler <function base64_decode_input_blobs at 0x7ff312982510>
2020-04-15 13:48:54,155 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.lambda.PublishLayerVersion: calling handler <function generate_idempotent_uuid at 0x7ff3142dc378>
2020-04-15 13:48:54,155 - MainThread - botocore.hooks - DEBUG - Event before-call.lambda.PublishLayerVersion: calling handler <function inject_api_version_header_if_needed at 0x7ff3142dfd08>
2020-04-15 13:48:54,156 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=PublishLayerVersion) with params: {'url_path': '/2018-10-31/layers/face-extractor-config-2/versions', 'query_string': {}, 'method': 'POST', 'headers': {'User-Agent': 'aws-cli/2.0.7 Python/3.7.3 Linux/4.15.0-96-generic botocore/2.0.0dev11'}, 'body': b'{"Content": {"S3Bucket": "face-match-data", "S3Key": "v.0.1.0/config-insightface-params.zip"}, "CompatibleRuntimes": ["python3.6", "python3.7"]}', 'url': 'https://lambda.ap-southeast-1.amazonaws.com/2018-10-31/layers/face-extractor-config-2/versions', 'context': {'client_region': 'ap-southeast-1', 'client_config': <botocore.config.Config object at 0x7ff312552d68>, 'has_streaming_input': False, 'auth_type': None}}
2020-04-15 13:48:54,156 - MainThread - botocore.hooks - DEBUG - Event request-created.lambda.PublishLayerVersion: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7ff312552cf8>>
2020-04-15 13:48:54,156 - MainThread - botocore.hooks - DEBUG - Event choose-signer.lambda.PublishLayerVersion: calling handler <function set_operation_specific_signer at 0x7ff3142dc268>
2020-04-15 13:48:54,156 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-04-15 13:48:54,156 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/2018-10-31/layers/face-extractor-config-2/versions

host:lambda.ap-southeast-1.amazonaws.com
x-amz-date:20200415T064854Z

host;x-amz-date
f5c05e551141b0265900334b995c7ce49d83720bdf87de4aa3b5a39d780d868d
2020-04-15 13:48:54,156 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200415T064854Z
20200415/ap-southeast-1/lambda/aws4_request
fdbde3662058d50fda461e31a05ae96139edc782dbd41a0bf0b1649a0d71fbed
2020-04-15 13:48:54,156 - MainThread - botocore.auth - DEBUG - Signature:
648548a9eca038739bcfc95f5cb7db277f7e4e18196709fe90144c469658721c
2020-04-15 13:48:54,156 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://lambda.ap-southeast-1.amazonaws.com/2018-10-31/layers/face-extractor-config-2/versions, headers={'User-Agent': b'aws-cli/2.0.7 Python/3.7.3 Linux/4.15.0-96-generic botocore/2.0.0dev11', 'X-Amz-Date': b'20200415T064854Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAV7R5INR7WZIGWZQW/20200415/ap-southeast-1/lambda/aws4_request, SignedHeaders=host;x-amz-date, Signature=648548a9eca038739bcfc95f5cb7db277f7e4e18196709fe90144c469658721c', 'Content-Length': '144'}>
2020-04-15 13:48:54,157 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): lambda.ap-southeast-1.amazonaws.com:443
2020-04-15 13:49:52,169 - MainThread - urllib3.connectionpool - DEBUG - https://lambda.ap-southeast-1.amazonaws.com:443 "POST /2018-10-31/layers/face-extractor-config-2/versions HTTP/1.1" 500 85
2020-04-15 13:49:52,170 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Wed, 15 Apr 2020 06:49:52 GMT', 'Content-Type': 'application/json', 'Content-Length': '85', 'Connection': 'keep-alive', 'x-amzn-RequestId': '66c6f8ec-7e97-4a8d-952c-732ae54cbb78', 'x-amzn-ErrorType': 'ServiceException'}
2020-04-15 13:49:52,170 - MainThread - botocore.parsers - DEBUG - Response body:
b'{"Message":"An error occurred and the request cannot be processed.","Type":"Service"}'
2020-04-15 13:49:52,171 - MainThread - botocore.hooks - DEBUG - Event needs-retry.lambda.PublishLayerVersion: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7ff3124a3518>>
2020-04-15 13:49:52,171 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.45694681238371815
2020-04-15 13:49:52,171 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.45694681238371815 seconds
2020-04-15 13:49:52,629 - MainThread - botocore.hooks - DEBUG - Event request-created.lambda.PublishLayerVersion: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7ff312552cf8>>
2020-04-15 13:49:52,629 - MainThread - botocore.hooks - DEBUG - Event choose-signer.lambda.PublishLayerVersion: calling handler <function set_operation_specific_signer at 0x7ff3142dc268>
2020-04-15 13:49:52,630 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-04-15 13:49:52,630 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/2018-10-31/layers/face-extractor-config-2/versions

host:lambda.ap-southeast-1.amazonaws.com
x-amz-date:20200415T064952Z

host;x-amz-date
f5c05e551141b0265900334b995c7ce49d83720bdf87de4aa3b5a39d780d868d
2020-04-15 13:49:52,630 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200415T064952Z
20200415/ap-southeast-1/lambda/aws4_request
e1e4813b7ea42237ae04a6f0cefd744ec682db57bca6afb6bb95ac86455bcda4
2020-04-15 13:49:52,631 - MainThread - botocore.auth - DEBUG - Signature:
c87a9f76557afa6d10e2bd2e468153482729e03d20ab7c283393b50be33a888e
2020-04-15 13:49:52,631 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://lambda.ap-southeast-1.amazonaws.com/2018-10-31/layers/face-extractor-config-2/versions, headers={'User-Agent': b'aws-cli/2.0.7 Python/3.7.3 Linux/4.15.0-96-generic botocore/2.0.0dev11', 'X-Amz-Date': b'20200415T064952Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAV7R5INR7WZIGWZQW/20200415/ap-southeast-1/lambda/aws4_request, SignedHeaders=host;x-amz-date, Signature=c87a9f76557afa6d10e2bd2e468153482729e03d20ab7c283393b50be33a888e', 'Content-Length': '144'}>
2020-04-15 13:50:50,780 - MainThread - urllib3.connectionpool - DEBUG - https://lambda.ap-southeast-1.amazonaws.com:443 "POST /2018-10-31/layers/face-extractor-config-2/versions HTTP/1.1" 500 85
2020-04-15 13:50:50,781 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Wed, 15 Apr 2020 06:50:50 GMT', 'Content-Type': 'application/json', 'Content-Length': '85', 'Connection': 'keep-alive', 'x-amzn-RequestId': '17121c88-1038-4dfe-a083-6ff7fcbe5dfd', 'x-amzn-ErrorType': 'ServiceException'}
2020-04-15 13:50:50,781 - MainThread - botocore.parsers - DEBUG - Response body:
b'{"Message":"An error occurred and the request cannot be processed.","Type":"Service"}'
2020-04-15 13:50:50,781 - MainThread - botocore.hooks - DEBUG - Event needs-retry.lambda.PublishLayerVersion: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7ff3124a3518>>
2020-04-15 13:50:50,781 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 1.303645211662133
2020-04-15 13:50:50,781 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.303645211662133 seconds
2020-04-15 13:50:52,086 - MainThread - botocore.hooks - DEBUG - Event request-created.lambda.PublishLayerVersion: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7ff312552cf8>>
2020-04-15 13:50:52,087 - MainThread - botocore.hooks - DEBUG - Event choose-signer.lambda.PublishLayerVersion: calling handler <function set_operation_specific_signer at 0x7ff3142dc268>
2020-04-15 13:50:52,087 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-04-15 13:50:52,087 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/2018-10-31/layers/face-extractor-config-2/versions

host:lambda.ap-southeast-1.amazonaws.com
x-amz-date:20200415T065052Z

host;x-amz-date
f5c05e551141b0265900334b995c7ce49d83720bdf87de4aa3b5a39d780d868d
2020-04-15 13:50:52,087 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200415T065052Z
20200415/ap-southeast-1/lambda/aws4_request
7610b3115b69a501d58578007a8163bc3fc8b4ff5720cac1796c676d45368a3c
2020-04-15 13:50:52,087 - MainThread - botocore.auth - DEBUG - Signature:
6bb2fc52f93406d669f73b2adbc535d92f67ee9f06ba336610542c6faf30c4bc
2020-04-15 13:50:52,087 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://lambda.ap-southeast-1.amazonaws.com/2018-10-31/layers/face-extractor-config-2/versions, headers={'User-Agent': b'aws-cli/2.0.7 Python/3.7.3 Linux/4.15.0-96-generic botocore/2.0.0dev11', 'X-Amz-Date': b'20200415T065052Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAV7R5INR7WZIGWZQW/20200415/ap-southeast-1/lambda/aws4_request, SignedHeaders=host;x-amz-date, Signature=6bb2fc52f93406d669f73b2adbc535d92f67ee9f06ba336610542c6faf30c4bc', 'Content-Length': '144'}>
2020-04-15 13:51:49,530 - MainThread - urllib3.connectionpool - DEBUG - https://lambda.ap-southeast-1.amazonaws.com:443 "POST /2018-10-31/layers/face-extractor-config-2/versions HTTP/1.1" 500 85
2020-04-15 13:51:49,531 - MainThread - botocore.parsers - DEBUG - Response headers: {'Date': 'Wed, 15 Apr 2020 06:51:49 GMT', 'Content-Type': 'application/json', 'Content-Length': '85', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'b3e1cdc8-10fc-4f5e-9861-81d80de106ae', 'x-amzn-ErrorType': 'ServiceException'}
2020-04-15 13:51:49,532 - MainThread - botocore.parsers - DEBUG - Response body:
b'{"Message":"An error occurred and the request cannot be processed.","Type":"Service"}'
2020-04-15 13:51:49,532 - MainThread - botocore.hooks - DEBUG - Event needs-retry.lambda.PublishLayerVersion: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7ff3124a3518>>
2020-04-15 13:51:49,532 - MainThread - botocore.retries.standard - DEBUG - Max attempts of 3 reached.
2020-04-15 13:51:49,533 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2020-04-15 13:51:49,533 - MainThread - botocore.hooks - DEBUG - Event after-call.lambda.PublishLayerVersion: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7ff3124a3160>>
2020-04-15 13:51:49,537 - MainThread - awscli.clidriver - DEBUG - Service returned an exception
Traceback (most recent call last):
  File "awscli/clidriver.py", line 335, in main
  File "awscli/clidriver.py", line 507, in __call__
  File "awscli/clidriver.py", line 685, in __call__
  File "awscli/clidriver.py", line 806, in invoke
  File "awscli/clidriver.py", line 818, in _make_client_call
  File "botocore/client.py", line 208, in _api_call
  File "botocore/client.py", line 518, in _make_api_call
botocore.errorfactory.ServiceException: An error occurred (ServiceException) when calling the PublishLayerVersion operation (reached max retries: 2): An error occurred and the request cannot be processed.

An error occurred (ServiceException) when calling the PublishLayerVersion operation (reached max retries: 2): An error occurred and the request cannot be processed.

Но он не работает из-за SercviceException. Я также пытаюсь добавить время ожидания соединения. У него нет четкого сообщения об ошибке, и я не знаю, как это исправить. У кого-нибудь есть решение?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...