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

Issue on sending payload via postman #4

Open
KHADIJATARIQ45 opened this issue Aug 4, 2021 · 2 comments
Open

Issue on sending payload via postman #4

KHADIJATARIQ45 opened this issue Aug 4, 2021 · 2 comments

Comments

@KHADIJATARIQ45
Copy link

Hi,
please let me know how to resolve this issue.I followed your youtube tutorial "How to upload file with metadata - Amazon API Gateway p13" but while running API through postman it is getting error --->{
"message": "Could not parse request body into json: Could not parse payload into json: Unrecognized token 'LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTg5NTE2NzMyNDY5NzM4ODUwNDgxNzA1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9IldvcmtzcGFjZSAtIEF6dXJlIE1GQSBTZXR1cC5wZGYiDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3BkZg0KDQolUERGLTEuNAol4uPP0woz...': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (byte[])"LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTg5NTE2NzMyNDY5NzM4ODUwNDgxNzA1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9IldvcmtzcGFjZSAtIEF6dXJlIE1GQSBTZXR1cC5wZGYiDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3BkZg0KDQolUERGLTEuNAol4uPP0wozIDAgb2JqCjw8L0NvbG9yU3BhY2UvRGV2aWNlUkdCL1N1YnR5cGUvSW1hZ2UvSGVpZ2h0IDcyMC9GaWx0ZXIvRmxhdGVEZWNvZGUvVHlwZS9YT2JqZWN0L1dpZHRoIDU0MC9MZW5ndGggODA0NzAvQml0c1BlckNvbXBvbmVudCA4Pj5zdHJlYW0KeJzsXQd4FdXW9f0KpAPie88GBFJIpYUOISG990YIIYUkgg2xgZWiIqCCCFKk"[truncated 475584 bytes]; line: 1, column: 257]"
}
image

@ethauber
Copy link

@prasanthi0302
Copy link

Hi Chirag,
I used this code in my lamda function , which has s3 event trigger(PUT)-
https://github.com/srcecde/aws-tutorial-code/blob/master/lambda/lambda_s3_event_ses_attach_email.py.
When i upload file to the buck, Lambda is not getting triggered.
when i test from lambda function, showing below error message.
{
"statusCode": 500,
"body": ""Email delivery failed!""
}
Please have a look.

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

3 participants