-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws lambda create-function: UnicodeDecodeError: 'ascii' codec can't decode byte 0x91 in position 12: ordinal not in range(128) #1304
Comments
I would try to read the file in as binary by using |
Ugh - nice catch. @kyleknap Thanks for the tip! I guess it would be nice for the awscli to spit out a more informative error in this case. |
Yep we thought the error message needed improvement as well. We recently merged a pull request to create a better error message: #1296. This will be available in the next release of the CLI. Closing issue. |
Event before-building-argument-table-parser.lambda.create-function: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument In my case everything is working fine though but the lambda creation with environment variables is causing issue. ('runtime', <awscli.arguments.CLIArgument object at 0x7fa2d2d5de48>), ('role', <awscli.arguments.CLIArgument object at 0x7fa2d2d5deb8>), ('handler', <awscli.arguments.CLIArgument object at 0x7fa2d2d5df28>), ('code', <awscli.arguments.CLIArgument object at 0x7fa2d2d5df98>), ('description', <awscli.arguments.CLIArgument object at 0x7fa2d2d5dfd0>), ('timeout', <awscli.arguments.CLIArgument object at 0x7fa2d2d62080>), ('memory-size', <awscli.arguments.CLIArgument object at 0x7fa2d2d620b8>), ('publish', <awscli.arguments.BooleanArgument object at 0x7fa2d2d62128>), ('no-publish', <awscli.arguments.BooleanArgument object at 0x7fa2d2d62160>), ('vpc-config', <awscli.arguments.CLIArgument object at 0x7fa2d2d62198>)]) aws help Unknown options: --environment Variables={key=val} Any idea ?? |
I'm trying to use the awscli to create a Lambda function.
aws lambda create-function
is failing with a UnicodeDecodeError:'ascii' codec can't decode byte 0x91 in position 12: ordinal not in range(128)
Here's a scrubbed version of the output with
--debug
enabled:aws lambda list-functions
works correctly:The function listed above was created using the console.
I have awscli and it's dependencies installed in a virtualenv. Here are the module versions:
The text was updated successfully, but these errors were encountered: