Open ravikashyap1 opened 3 years ago
There are a few cases that the mock bootstrap will exit with this code:
I'm guessing it's probably a socket timeout or similar
Is there a workaround you recommend?
Unfortunately I've never seen it before. If you find a way of reliably reproducing it, let me know and I'll see if I can determine the root cause.
I have not been able to repro this manually. It happens completely at random and the last occurrence was when the container ran for just under 5 seconds and without any app error, but the container exited with 1. A retry (run the container all over again, with the same payload) works.
I am running .net 2.1 code which completes with no errors but the docker container exits with 1 occasionally. This happens about 1% of the time. I am running this as a Fargate task in AWS, and so don't have the docker container id to inspect. In what circumstances would docker-lambda return an exit code of 1 ?