| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks good in principal, just minor nits
Sorry, something went wrong.
There was a problem hiding this comment.
🚀
Sorry, something went wrong.
| User: GetenvWithDefault("LOCALSTACK_USER", "sbx_user1051"), | ||
| InitLogLevel: GetenvWithDefault("LOCALSTACK_INIT_LOG_LEVEL", "warn"), | ||
| EdgePort: GetenvWithDefault("EDGE_PORT", "4566"), | ||
| MaxPayloadSize: GetenvWithDefault("LOCALSTACK_MAX_PAYLOAD_SIZE", "6291556"), |
There was a problem hiding this comment.
Intentionally no unit _BYTES vs. LAMBDA_LIMITS_MAX_FUNCTION_PAYLOAD_SIZE_BYTES in LocalStack
guess to match with interop.MaxPayloadSize
(LOCALSTACK_POST_INVOKE_WAIT_MS also has a unit)
Sorry, something went wrong.
| log "github.com/sirupsen/logrus" | ||
| ) | ||
|
|
||
| var MaxPayloadSize int = 6*1024*1024 + 100 // 6 MiB + 100 bytes |
There was a problem hiding this comment.
annoying that we cannot use a single type due to mixed usages 😢 (server.go requires an int; not int64)
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When sending an oversized (>6MB) response payload, the runtime process exits with exit code 1. In our error handling code we used log.Fatal when handling a ErrInvokeDoneFailed exception which caused the init to prematurely exit and thus didn't send a proper response back to localstack.
Additionaly when testing, I've noticed a small parity gap, so I patched the generated message to not include the actual bytes there. Though I guess its debatable if we want to keep that part of the PR or not. 🤷♂️