-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
kfp client returns HTTP 500 error, even after the pipeline run succeeds #788
Comments
@nareshganesan What's the actual client command you issued? Can you paste that as well? I suspect this has something to do with creating a run outside an experiment in the python client. I will take a look. |
/assign @neuromage |
Yes, I'm using the following snippet. ...
...
...
client = kfp.Client(clstrURL)
pipeline_json_string = json.dumps(workflowYaml)
api_params = [kfp_run.ApiParameter(name=_k8s_helper.K8sHelper.sanitize_k8s_name(k), value=str(v))
for k,v in params.items()]
key = kfp_run.models.ApiResourceKey(id=experiment_id,
type=kfp_run.models.ApiResourceType.EXPERIMENT)
reference = kfp_run.models.ApiResourceReference(key, kfp_run.models.ApiRelationship.OWNER)
spec = kfp_run.models.ApiPipelineSpec(
workflow_manifest=pipeline_json_string, parameters=api_params)
run_body = kfp_run.models.ApiRun(
pipeline_spec=spec, resource_references=[reference], name=job_name)
config = kfp_run.configuration.Configuration()
config.host = clstrURL if clstrURL else Client.IN_CLUSTER_DNS_NAME
api_client = kfp_run.api_client.ApiClient(config)
client._run_api = kfp_run.api.run_service_api.RunServiceApi(api_client)
response = client._run_api.create_run(body=run_body)
...
... Thanks for helping out! |
I think this has been fixed. @nareshganesan feel free to reopen if this is still a problem and I can re-assign this if needed. Thanks. |
When I'm creating a pipeline run using kfp client. I'm able to create my pipeline and the workflow controller has no error message and the pipeline succeeds, but the kfp client response has the following HTTP 500 error. I'm really not sure, how to trouble shoot. Please help.
This is how I built my kfp python sdk.
@swiftdiaries - I'll update details about listing experiments through sdk soon
Thanks for helping out!
The text was updated successfully, but these errors were encountered: