Serving: Why I can not get the model status via curl?

Created on 8 Oct 2018  路  5Comments  路  Source: tensorflow/serving

First: I startup the sample 'half_plus_two_2_versions' via tensorflow_model_server
Second: I use 'curl -X GET http://localhost:8501/v1/models/half_plus_two_2_versions', but I get the error message: { "error": "Malformed request: GET /v1/models/half_plus_two_2_versions" }

Who can help me, thanks.

Most helpful comment

What version of TF serving are you trying to get model status?

Model status API is only supported in master branch. There is no TF serving release that supports it yet (the API is slated for upcoming 1.12 release). You can use the nightly docker image (tensorflow/serving:nightly) to test on master branch builds.

Thank you very much.
issue: If the model status API is only supported in master branch. your should not explain elaborate in the docs:RESTFul API about getting status
or explain the status API status is only supported in master branch.
Thanks.

All 5 comments

I can use the following code get the result:
curl -d '{"instances": [1.0, 2.0, 5.0]}' -X POST http://localhost:8501/v1/models/half_plus_two_2_versions:predict

Result:

{ "predictions": [2.5, 3.0, 4.5 ] }
thanks~

Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow-serving

If you open a GitHub issue, it must be a bug, a feature request, or a
significant problem with documentation (for small docs fixes please send
a PR instead).

Thanks!

Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow-serving

If you open a GitHub issue, it must be a bug, a feature request, or a
significant problem with documentation (for small docs fixes please send
a PR instead).

Thanks!

I think this is a bug, i use other API can get the result, but i can not use your guide to get the model status.
Besides, in closed issue 1085 https://github.com/tensorflow/serving/issues/1085 and 1095 https://github.com/tensorflow/serving/issues/1095 all mention this issue, but not solve this problem.
Please check your status API is correct or make the docs clear. Thanks.

What version of TF serving are you trying to get model status?

Model status API is only supported in master branch. There is no TF serving release that supports it yet (the API is slated for upcoming 1.12 release). You can use the nightly docker image (tensorflow/serving:nightly) to test on master branch builds.

What version of TF serving are you trying to get model status?

Model status API is only supported in master branch. There is no TF serving release that supports it yet (the API is slated for upcoming 1.12 release). You can use the nightly docker image (tensorflow/serving:nightly) to test on master branch builds.

Thank you very much.
issue: If the model status API is only supported in master branch. your should not explain elaborate in the docs:RESTFul API about getting status
or explain the status API status is only supported in master branch.
Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sskgit picture sskgit  路  4Comments

prateekgupta11 picture prateekgupta11  路  4Comments

dylanrandle picture dylanrandle  路  3Comments

OmriShiv picture OmriShiv  路  3Comments

marcoadurno picture marcoadurno  路  3Comments