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

Document Mistake about Endpoint Testing #1881

Closed
chaowen112 opened this issue May 26, 2020 · 1 comment
Closed

Document Mistake about Endpoint Testing #1881

chaowen112 opened this issue May 26, 2020 · 1 comment
Assignees
Labels
bug triage Needs to be triaged and prioritised accordingly
Milestone

Comments

@chaowen112
Copy link

In this document, I can't use the curl command to test the endpoint. Eventually, I found out that the command should be

curl -g http://localhost:5000/predict --data-urlencode 'json={"data": {"names": ["sepal_length", "sepal_width", "petal_length", "petal_width"], "ndarray": [[7.233, 4.652, 7.39, 0.324]]}}'

instead of

> curl -X POST \
>     -H 'Content-Type: application/json' \
>     -d '{"data": { "ndarray": [[1,2,3,4]]}}' \
>         http://localhost:5000/api/v1.0/predictions

written in the document

@chaowen112 chaowen112 added bug triage Needs to be triaged and prioritised accordingly labels May 26, 2020
@ukclivecox ukclivecox added this to the 1.2 milestone May 26, 2020
@ukclivecox ukclivecox self-assigned this May 26, 2020
@ukclivecox
Copy link
Contributor

I the correct would be content-type JSON. Maybe you are using an old version of Seldon Core. JSON is valid for 1.1. Will close this. Please reopen if there is an issue in 1.1.0 version of docs and code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs to be triaged and prioritised accordingly
Projects
None yet
Development

No branches or pull requests

2 participants