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

Why I can not get the model status via curl? #1128

Closed
Milittle opened this issue Oct 8, 2018 · 5 comments
Closed

Why I can not get the model status via curl? #1128

Milittle opened this issue Oct 8, 2018 · 5 comments

Comments

@Milittle
Copy link

Milittle commented Oct 8, 2018

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.

@Milittle
Copy link
Author

Milittle commented Oct 8, 2018

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~

@Milittle Milittle closed this as completed Oct 8, 2018
@Milittle Milittle reopened this Oct 8, 2018
@chrisolston
Copy link
Contributor

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!

@Milittle
Copy link
Author

Milittle commented Oct 9, 2018

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 #1085 and 1095 #1095 all mention this issue, but not solve this problem.
Please check your status API is correct or make the docs clear. Thanks.

@netfs
Copy link
Collaborator

netfs commented Oct 9, 2018

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.

@Milittle
Copy link
Author

Milittle commented Oct 11, 2018

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.

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

3 participants