question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kfserving tensorflow flowers-sampleprediction through curl not working in kubeflow-v1.0.2 in GKE

See original GitHub issue

/kind bug

What steps did you take and what happened: Kfserving tensorflow flowers-sample prediction through curl command not working in kubeflow-v1.0 in GKE Followed steps in https://github.com/kubeflow/kfserving/tree/master/docs/samples/tensorflow flowers-sample in kubeflow v1.0

But error got through curl command to predict data Error :

  • Connected to X.X.X.X port 31380 (#0)

POST /v1/models/flowers-sample:predict HTTP/1.1 Host: flowers-sample.anonymous.example.com User-Agent: curl/7.58.0 Accept: / Content-Length: 16139 Content-Type: application/x-www-form-urlencoded Expect: 100-continue

< HTTP/1.1 100 Continue

  • We are completely uploaded and fine < HTTP/1.1 404 Not Found < x-powered-by: Express < content-security-policy: default-src ‘none’ < x-content-type-options: nosniff < content-type: text/html; charset=utf-8 < content-length: 172 < date: Sun, 26 Apr 2020 17:04:37 GMT < x-envoy-upstream-service-time: 0 < server: istio-envoy <
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body>
Cannot POST /v1/models/flowers-sample:predict
</body> </html> * Connection #0 to host X.X.X.X1 left intact

What did you expect to happen: flowers-sample curl command to predict the result

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

  • Istio Version: default version comes with kubeflow 1.0
  • Knative Version: default version comes with kubeflow 1.0
  • KFServing Version: default version comes with kubeflow 1.0
  • Kubeflow version: v1.0
  • Kubernetes version: (use kubectl version): 1.14.10
  • OS (e.g. from /etc/os-release): ubuntu

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
nicozhangcommented, Apr 8, 2022

this has been fixed in kubeflow 1.1 /close

this problem still exists in 1.5 and 1.4

[root@dev-master kfserving]# curl -v -H "Host: ${SERVICE_HOSTNAME}" -H "Cookie: authservice_session=${SESSION}" http://${CLUSTER_IP}/v1/models/${MODEL_NAME}:predict -d ${INPUT_PATH}
* About to connect() to 10.101.216.126 port 80 (#0)
*   Trying 10.101.216.126...
* Connected to 10.101.216.126 (10.101.216.126) port 80 (#0)
> POST /v1/models/sklearn-iris:predict HTTP/1.1
> User-Agent: curl/7.29.0
> Accept: */*
> Host: sklearn-iris.kubeflow-user-example-com.example.com
> Cookie: authservice_session=MTY0OTQwNzgyOXxOd3dBTkVaQ1ZqWlpTazFFVlVVMU56TkxWRTQyV0ZkV1ZVTllWMWRCVEZGQldFTXpNamRMUjFoVE56SmFTVmMyVGpWTVMwVk9VRkU9fKa7dC36g3eCJjrZakMOkJOEvoouLi190z06UrDWWjQZ
> Content-Length: 88
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 88 out of 88 bytes
< HTTP/1.1 404 Not Found
< x-powered-by: Express
< content-security-policy: default-src 'none'
< x-content-type-options: nosniff
< content-type: text/html; charset=utf-8
< content-length: 170
< date: Fri, 08 Apr 2022 08:55:50 GMT
< x-envoy-upstream-service-time: 2
< server: istio-envoy
<
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /v1/models/sklearn-iris:predict</pre>
</body>
</html>
* Connection #0 to host 10.101.216.126 left intact
2reactions
yuzisuncommented, Jul 10, 2020

@SachinVarghese you want to give a shot with kubeflow 1.1 RC0?

Read more comments on GitHub >

github_iconTop Results From Across the Web

kfserving tensorflow flowers-sampleprediction through curl not ...
kfserving tensorflow flowers-sampleprediction through curl not working in kubeflow-v1. 0.2 in GKE · Issue #798 · kserve/kserve · GitHub.
Read more >
Troubleshooting Deployments on GKE - Kubeflow
This guide helps diagnose and fix issues you may encounter with Kubeflow on Google Kubernetes Engine (GKE) and Google Cloud.
Read more >
Not able to access a Istio enabled GKE service directly from ...
I deployed a node app on cloud run option (GKE Cluster with Istio enabled). I checked the services running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found