#API returns 400 (bad request) called from Python AWS lambda function

2 messages · Page 1 of 1 (latest)

sage zealot
#

I attached a photo of my AWS lambda function. I have verified that it is sending the message as a post request and that the API key is working. I also asked chatGPT to write a few python functions for AWS Lambda and those gave the same 400 error. Any ideas on how to fix this?

sinful gazelle
#

Print out the 400 error, it should have an associated message returned by the API