pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

[Request header error: there is no user identity header] Using the kubeflow pipeline APIs, I was unable to create a run.

Open srikarjavvaji opened this issue 1 year ago • 5 comments

I am following tutorial of Kubeflow Pipelines API: Kubeflow & Kubeflow Pipelines API

I've installed Kubeflow on a MicroK8s and started experimenting with the Kubeflow Pipelines API, I was able to upload a pipeline to the central dashboard by using kubeflow upload API, but when I tried utilizing the Kubeflow RUN API, I was unable to establish a RUN. It initially asks me to enter my experiment ID, which I did after creating the experiment in the central dashboard, and then I entered my experiment ID. After passing Experiment ID facing with the below issue, can anyone offer assistance?

RUN_ID=$(( curl -H "Content-Type: application/json" -X POST ${SVC}/apis/v1beta1/runs
-d @- << EOF { "name":"${PIPELINE_NAME}_run", "pipeline_spec":{ "pipeline_id":"${PIPELINE_ID}" } } EOF ) | jq -r .run.id) {"error":"Invalid input error: Job has no experiment.","code":3,"message":"Invalid input error: Job has no experiment.","details":[{"@type":"type.googleapis.com/api.Error","error_message":"Job has no experiment.","error_details":"Invalid input error: Job has no experiment."}]}

After passing the Experiment Id Getting with this below error

curl -v -H "Content-Type: application/json" -X POST ${SVC}/apis/v1beta1/runs -d @- << EOF { "name":"${PIPELINE_NAME}_run", "pipeline_spec":{ "pipeline_id":"${PIPELINE_ID}" }, "resource_references": [ { "key": { "type": "EXPERIMENT", "id": "376a6097-67e3-48b4-bda1-26538abae21d" }, "relationship": "OWNER" } ] } EOF Note: Unnecessary use of -X or --request, POST is already inferred. Trying 127.0.0.1:8888... TCP_NODELAY set Connected to localhost (127.0.0.1) port 8888 (#0)

POST /apis/v1beta1/runs HTTP/1.1 Host: localhost:8888 User-Agent: curl/7.68.0 Accept: / Content-Type: application/json Content-Length: 278

upload completely sent off: 278 out of 278 bytes Mark bundle as not supporting multiuse < HTTP/1.1 500 Internal Server Error < Content-Type: application/json < Date: Mon, 17 Jul 2023 10:08:03 GMT < Transfer-Encoding: chunked < {"error":"Internal error: Unauthenticated: Request header error: there is no user identity header.: Request header error: there is no user identity header.\nFailed to authorize with API resource references\ngithub.com/kubeflow/pipelines/backend/src/common/util.Wrap\n\t/go/src/github.com/kubeflow/pipelines/backend/src/common/util/error.go:287\ngithub.com/kubeflow/pipelines/backend/src/apiserver/server.(*RunServer).canAccessRun\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/run_server.go:400\ngithub.com/kubeflow/pipelines/backend/src/apiserver/server.(*RunServer).

srikarjavvaji avatar Jul 18 '23 10:07 srikarjavvaji

My work has literally struck at this point, could someone kindly assist me?

srikarjavvaji avatar Sep 11 '23 06:09 srikarjavvaji

@srikarjavvaji as commented on stackoverflow post, please use the GUI and try running the pipeline from it. Most likely, there seems to be an issue with your setup as its working for me. Attached is the snaphot for the same Screenshot 2023-10-28 at 5 54 24 am

vikas-saxena02 avatar Oct 27 '23 19:10 vikas-saxena02

/assign vikas-saxena02

vikas-saxena02 avatar Oct 27 '23 19:10 vikas-saxena02

@srikarjavvaji can you share if the proposed solution work for you? As mentioned, happy to jump on a quick call.

vikas-saxena02 avatar Oct 31 '23 01:10 vikas-saxena02

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 29 '24 07:01 github-actions[bot]

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

github-actions[bot] avatar Mar 17 '24 07:03 github-actions[bot]