Skip to content

[Content]: Possible outdated query; ran into error when utilizing without extra flag #3617

@jpang007

Description

@jpang007

What article on segment.com/docs is affected?

https://segment.com/docs/connections/sources/catalog/cloud-apps/amazon-s3/

What part(s) of the article would you like to see updated?

I believe there is an outdated command on this help guide which took me some time to figure out. In step 5, #2 the documentation gives us a long command to test out the lambda function from the Amazon CLI. However, when running the command as is, I got the following error.
Screen Shot 2022-10-06 at 5 42 56 PM

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 middle byte 0x28.

After some searching I found this medium article that suggests adding the following tag at the end of the CLI command:
--cli-binary-format raw-in-base64-out

After adding this command, I was successfully able to test the command and I saw the appropriate result reflected in my Segment AWS S3 source.

Additional information

No response

Metadata

Metadata

Assignees

Labels

contentWhen the bug is about content that needs to get fixedtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions