Debugging a function returns 502

Hey David!

Thanks for the quick response. I think you may be right, it doesn’t appear to be something wrong with my instance as the hello world example works correctly.

On my local machine, I’ve logged the result parameter to callback and it’s the following:

{ statusCode: 200, body: 1533.0575706224508 }

The other thing I don’t know how to debug but am suspicious of is some sort of error I’m not handling getting placed in the body that only happens on netlify and not my machine.