Hey fool I am having a really similar issue with my lambda function that is querying a mysql db except it’s a 502.
This is the error message I get back
{errorMessage: "RequestId: 77d237c0-cf7d-46a9-a966-27fc225f2747 Process exited before completing request"}
Do you think you could point me in the right direction on how I should debug this? My setup works fine if I send a simple response back instead of doing a mysql query. This is the post I have about it here