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

Error 401 while requesting prediction outputs from seldon server #122

Closed
TechDevCode opened this issue Mar 21, 2018 · 3 comments
Closed

Comments

@TechDevCode
Copy link

TechDevCode commented Mar 21, 2018

Hi,
I am trying to run examples at following links on my bare metal cluster with 1 physical node as master and other as worker.
https://github.com/SeldonIO/seldon-core/blob/master/notebooks/kubectl_demo_gcp.ipynb
and
https://github.com/SeldonIO/seldon-core/blob/master/examples/models/keras_mnist/README.md

But when I request prediction result from deployed model. I get following error
{'path': '/oauth/token', 'message': 'Bad credentials', 'timestamp': 1521527066875, 'status': 401, 'error': 'Unauthorized'}

@ukclivecox
Copy link
Contributor

This looks like your oauth key/secret is incorrect. Are you sure it matches what you specify in your seldondeployment ?

@TechDevCode
Copy link
Author

TechDevCode commented Mar 22, 2018

In https://github.com/SeldonIO/seldon-core/tree/master/examples/models/keras_mnist example I have deployed model using provided "keras_mnist_deployment.json" https://github.com/SeldonIO/seldon-core/blob/master/examples/models/keras_mnist/keras_mnist_deployment.json file. While querying prediction results I have used key as "oauth-key" and secret as "oauth-secret" mentioned in provided keras_mnist_deployment.json file.
Another detail is that I am deploying model in bare-metal cluster, so I have not used load balancer. I have used NodePort. But in the case of NodePort ExternalIP is shown as none instead of nodes for seldon-apiserver as shown below

kubectl get svc -n seldon
NAME               TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                         AGE
redis              ClusterIP   10.107.221.86   <none>        6379/TCP                        2d
seldon-apiserver   NodePort    10.96.47.170    <none>        8080:30492/TCP,5000:32232/TCP   2d

@ukclivecox
Copy link
Contributor

Please reopen if still an issue.

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