-
Notifications
You must be signed in to change notification settings - Fork 35
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
task REST endpoint returning 'null' instead of 404 #135
Comments
Nice catch @icastro28 Returning null is super weird. 200 is IMHO more correct as the list of running tasks still exists even when it is empty. But regardless we should update one or both so that the documentation is correct. |
Fair enough, but yeah null is not good. |
hi @icastro28 , which version are you running ? PR #115 should have fixed that (200 + empty array). Maybe there's a regression somewhere. |
Aha, I thought it sounded familiar. Looks like it didn't make it into a tagged release up until recently. @alde Did you get 0.24 to work? |
@keis: yes, as far as I could test. Tagged 0.24.1 with the fix. |
I didn't use a specifix tag, I used latest. Ivan
|
While testing the REST endpoints provided, I noticed that when the GET /task endpoint is called, and no tasks are currently RUNNING, the response code is wrong since I'm getting a 200 code with 'null' value in the body, instead of getting a 404 as specified in the Swagger.yaml file.
The text was updated successfully, but these errors were encountered: