tl;dr: Loading a PDF from front end -> API gateway -> Lambda -> S3. Error message in s3 is "Failed to load PDF document". Tested with postman and it works tho