theam / aws-lambda-haskell-runtime

⚡Haskell runtime for AWS Lambda
https://theam.github.io/aws-lambda-haskell-runtime/
Other
269 stars 48 forks source link

bootstrap errors not logging #89

Open shmish111 opened 4 years ago

shmish111 commented 4 years ago

I'm doing something where the payload can't decode to my handler input type, I used to get an error in cloudwatch logs when this happened but I upgraded from version 2.0.4 to 3.0.0 and this log has disappeared.

NickSeagull commented 3 years ago

Hello! Thanks for pointing this out, can you provide a repo to reproduce the issue?

shmish111 commented 3 years ago

Not a simple one I'm afraid however the code I am using is here https://github.com/input-output-hk/plutus/blob/add-aws-secrets/marlowe-playground-server/src/Lambda.hs

I've also tried using the ALB integration (I will open an issue for that). It has a slightly different format of event to the APIGW proxy format so the lambda fails (I expected this) however I get nothing in the logs to tell me that it failed or why it failed, just a START event and an END event (and a 502 with no info to the user)

NickSeagull commented 3 years ago

This is very weird indeed, my first call would be to try doing an hFlush stdout and see if it solves it.

dnikolovv commented 3 years ago

@shmish111 502 usually means you aren't reaching the lambda at all. It's not a problem with the runtime, it's probably a misconfig.