lambda-debugger-runtime-emulator
lambda-debugger-runtime-emulator copied to clipboard
Support empty (`serde_json::to_value(())`) responses
Hi! This is an awesome project.
I just got it going with some Lambdas I'm working on, and it's working perfectly. I ran into two small issues while getting it going:
- If my project and and the debug proxy are building against two separate versions of
lambda_runtime, it fails because it can't determine which crate to use types from - Sending responses from Lambdas that use
Ok(())to denote success fails because it thinks that JSONnullis base58-encoded- Lambdas that return
Ok(())include ones that handle batches of events (like a DynamoDB streams processing Lambda)
- Lambdas that return
To fix this, I:
- pinned the
lambda_runtimeversion to"0.5.1"(latest release) - modified the base58 check to check for
nullbodies