Skip to content
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

Serializing,streaming mode should return 500 when exit code is non-zero #12

Open
alexellis opened this issue Apr 2, 2018 · 1 comment

Comments

@alexellis
Copy link
Member

alexellis commented Apr 2, 2018

Serializing & streaming mode should return 500 when exit code is non-zero

Unlike the classic watchdog it is returning 200 despite a non-zero exit code.

Example:

port=8081 mode=serializing fprocess="stat x" ./of-watchdog

curl localhost:8081 -i
HTTP/1.1 200 OK

stat x should clearly return a non-zero exit-code and a message to stderr.

@alexellis alexellis changed the title Serializing mode should return 500 when exit code is non-zero Serializing,streaming mode should return 500 when exit code is non-zero Apr 2, 2018
@ericstoekl
Copy link

I have been looking at the code and I think I have a solution for this -- I'll take this issue if that's ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants