I'm trying to upload the kubeflow pipeline to the artifact registry (with Kubeflow format). I'm using kfp.v2 for my project. The output of the pipeline is in json format after the compilation. To upload the file, I'm using "curl" command.

curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-F tags=v1,latest \
-H "Content-Type: application/json" \
-F content=@output_pipelines/data_injection_pipeline.json \
https://us-central1-kfp.pkg.dev/project_1/kubeflow_testing

When I tried to run above script from terminal, I'm getting an error : "Request has an invalid argument: invalid extension type data_injection_pipeline.json."

curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-F tags=v1,latest \
-F content=@output_pipelines/data_injection_pipeline.json \
https://us-central1-kfp.pkg.dev/project_1/kubeflow_testing

And, when I tried to run above script from terminal, I'm getting an error : "Request has an invalid argument: missing boundary in request or not a multipart request".

I'm eager to find out the solution. Additionally, please provide guidance if I have made any errors, as I am not well-versed in "curl" commands.

0

There are 0 best solutions below