Blank PDF download via aws-sdk-go #4697
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p2
This is a standard priority issue
Describe the bug
I'm trying to download a pdf saved on s3, serving it via a lambda written in go, with API Gateway on top of it. While the file on S3 has 15 pages and a lot of content, files being downloaded are coming out blank. The number of pages are recorded correctly, but the content is missing. The code looks like this:
Expected Behavior
The file should come with all the correct content
Current Behavior
File is either coming out to be an empty file or in a not supported PDF format when encoding it to base64, while keeping the API Gateway Binaries on.
Reproduction Steps
Put a file on S3
Write the above code for lambda and upload .zip file.
Attach an API Gateway on top of it to trigger lambda.
Hit the API Gateway url via a browser.
Possible Solution
Unable to figure it out
Additional Information/Context
No response
SDK version used
both v2 and v1
Environment details (Version of Go (
go version
)? OS name and version, etc.)1.18
The text was updated successfully, but these errors were encountered: