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.

Kubeflow Pipelines API unable to run Experiment

See original GitHub issue

What steps did you take:

I am following tutorial of Kubeflow Pipelines API: https://www.kubeflow.org/docs/pipelines/tutorials/api-pipelines/.

I am able to create a pipeline ID but each time I want to run that pipeline I get error: {“error”:“invalid character ‘Â’ looking for beginning of object key string”,“message”:“invalid character ‘Â’ looking for beginning of object key string”,“code”:3}

What happened:

I am trying to run experiment using Pipelines API. I am stuck on this error, how do I resolve this error :

curl -H "Cookie: authservice_session=MTY..9l" -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": "20a3bd7f-e1a7-4dad-9389-71bc3122b197"
        },
        "name": "Ajinkya",
        "relationship": "OWNER"
      }
  ]
}
EOF

For this I get error:

{"error":"invalid character 'Â' looking for beginning of object key string","message":"invalid character 'Â' looking for beginning of object key string","code":3}

What did you expect to happen:

I expect the pipeline to start under experiment name : Ajinkya

/kind bug

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ajinkya933commented, Nov 10, 2020

There was error in my curl request the proper request to run a pipeline ID using cookie is:

curl -H "Cookie: authservice_session=MTY...WQ" -H "Content-Type: application/json" -X POST ${SVC}/apis/v1beta1/runs \
-d @- << EOF
{
  
    "name":"eq_run",
    "pipeline_spec":{
      "pipeline_id":"${PIPELINE_ID}"
    },
    "resource_references":[
      {
        "key":{
          "type":"EXPERIMENT",
          "id":"${EXP_ID}"
        },
         "name": "Default",
         "relationship": "OWNER"
      }
        
      
    ]
}


EOF
0reactions
ajinkya933commented, Nov 9, 2020

For pod ml-pipeline-6bc56cd86d-tf5cb , I have option to choose one of: ml-pipeline-api-server OR istio-proxy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Kubeflow
This page presents some hints for troubleshooting specific problems that you may encounter. Diagnosing problems in your Kubeflow Pipelines ...
Read more >
kfp.Client().runs - Kubeflow Pipelines SDK API - Read the Docs
Re-initiates a failed or terminated run. # noqa: E501. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP...
Read more >
Failed to authorize with Kubeflow API resource references ...
if there is a k8s role created by Kubeflow in the namespace sysspendanalytics · if it contains the verb list to the resource...
Read more >
How to use the kfp.Client function in kfp - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. Enable here. github kubeflow /...
Read more >
Troubleshooting AI Platform Pipelines - Google Cloud
Understanding why a pipeline run failed · Open AI Platform Pipelines in the Google Cloud console. · Click Open pipelines dashboard for your...
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