Skip to content
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

Test the setup: An error occurred (InvalidRequestContentException) #382

Closed
LondonWebFactory opened this issue Jul 7, 2022 · 2 comments
Closed

Comments

@LondonWebFactory
Copy link

LondonWebFactory commented Jul 7, 2022

Can you help?

When I run this:

aws lambda invoke --function-name LambdaFunctionOverHttps \
--payload file://input.txt outputfile.txt

I get this:

An error occurred (InvalidRequestContentException) when calling the Invoke operation: Could not parse request body into json: Could not parse payload into json: Invalid UTF-8 start byte 0x97
 at [Source: (byte[])"���jب��!����������쵲����n{[(���k(��ږ�"; line: 1, column: 3]

When I run this:

aws --version

I get this:

aws-cli/2.7.13 Python/3.9.11 Darwin/20.6.0 exe/x86_64 prompt/off

My computer details are:
2022-07-07_14-30-48

@LondonWebFactory
Copy link
Author

This works:

aws lambda invoke --function-name LambdaFunctionOverHttps \
--payload file://input.txt outputfile.txt  --cli-binary-format raw-in-base64-out

@mwunderl
Copy link
Member

working on this in #180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants