Aws-cdk: [aws-lambda-python] Building fails: docker: Error response from daemon: invalid repository name (3873c00618823ac379a1322b6f73172bf7ef4702d79860224f37f359c8d2f5ba), cannot specify 64-byte hexadecimal strings.

Created on 28 Oct 2020  路  4Comments  路  Source: aws/aws-cdk

When using the aws-lambda-python module, I get the following error during the build phase:

Bundling asset <...>/lambda-function/Code/Stage...
docker: Error response from daemon: invalid repository name (3873c00618823ac379a1322b6f73172bf7ef4702d79860224f37f359c8d2f5ba), cannot specify 64-byte hexadecimal strings.

Reproduction Steps

It breaks with a simple "Hello World" lambda. I've got the same error with the PYTHON_3_7 and PYTHON_3_8 runtimes.

        lambda_function = aws_cdk.aws_lambda_python.PythonFunction(
            self,
            "lambda-function",
            entry=path.join(".", "lambda"),
            runtime=lambda_core.Runtime.PYTHON_3_7,
        )

Environment

  • CLI Version : 1.70.0
  • Framework Version: 1.70.0
  • Node.js Version: v13.11.0
  • OS : Windows 10
  • Language (Version): Python 3.8.2

This is :bug: Bug Report

@aws-cdaws-lambda-python bug needs-triage

All 4 comments

Which Docker version are you using? I think that this is #11124

@jogold seems like it, I'm using 20.10.0-beta1

EDIT: I just switched back to Docker Stable and now my code is working again. Indeed it seems like a problem with the newer Docker version. Thanks!

Thanks for looping back. Closing for now

鈿狅笍COMMENT VISIBILITY WARNING鈿狅笍

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Was this page helpful?
0 / 5 - 0 ratings