-
Notifications
You must be signed in to change notification settings - Fork 2k
No error message for invalid binary #1812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry, this sounds like a stack overflow question rather than an issue for this repo. I don't see anything in this repo that would be tweaked to change a behaviour that you're expecting. |
Just a note that you should add
|
Environment
Expected Behavior
When downloading an invalid binary the container should throw an error.
Current Behavior
Certain "binaries" will just exit with a code 0. For example if we download the following binary from AWS using curl but forget to enable redirect follows. Then curl will just try to download the redirect response as a binary.
But the binary is now 0 bytes. In some operating systems you will get an error indicating that the binary format is incorrect but for some reason in this container image we just get an exit code 0.
Possible Solution
I have no idea why this happens.
Steps to Reproduce
This is the most minimal dockerfile which recreates it, if the binary is downloaded correctly with the -L flag then
aws-lambda-rie
should run continuously but if it hasn't been downloaded then it will exit immediately with a successful error code.Additional Information
The text was updated successfully, but these errors were encountered: