title: How do I solve kubeflow notebook internal server error
body: <p>When I run <a href="https://github.com/kubeflow/examples/blob/master/pipelines/simple-notebook-pipeline/Simple%20Notebook%20Pipeline.ipynb" rel="nofollow noreferrer">this kubeflow tutorial notebook</a>, I got <code>ApiException: (500) Reason: Internal Server Error</code>.</p>
  <p><strong>Environment:</strong></p>
  <ul>
  <li>minikube version: (Server version <code>v1.21.14</code>)</li>
  <li>kubectl version: <code>v1.21.14</code></li>
  </ul>
  <p><strong>Code snippet</strong>:</p>
  <pre><code># Specify pipeline argument values
  arguments = {'a': '7', 'b': '8'}
  # Launch a pipeline run given the pipeline function definition
  kfp.Client().create_run_from_pipeline_func(calc_pipeline, arguments=arguments, 
                                             experiment_name=EXPERIMENT_NAME)
  # The generated links below lead to the Experiment page and the pipeline run details page, respectively
  </code></pre>
  <p><strong>Error message:</strong></p>
  <pre class="lang-bash prettyprint-override"><code>--------------------------------------------------------------------------- ApiException                              Traceback (most recent call
  &gt; last) Input In [8], in &lt;cell line: 4&gt;()
  &gt;       2 arguments = {'a': '7', 'b': '8'}
  &gt;       3 # Launch a pipeline run given the pipeline function definition
  &gt; ----&gt; 4 kfp.Client().create_run_from_pipeline_func(calc_pipeline, arguments=arguments, 
  &gt;       5                                            experiment_name=EXPERIMENT_NAME)
  &gt; 
  &gt; File /opt/conda/lib/python3.8/site-packages/kfp/_client.py:781, in
  &gt; Client.create_run_from_pipeline_func(self, pipeline_func, arguments,
  &gt; run_name, experiment_name, pipeline_conf, namespace, mode,
  &gt; launcher_image, pipeline_root)
  &gt;     775 pipeline_package_path = os.path.join(tmpdir, 'pipeline.yaml')
  &gt;     776 compiler.Compiler(mode=mode, launcher_image=launcher_image).compile(
  &gt;     777   pipeline_func=pipeline_func,
  &gt;     778   package_path=pipeline_package_path,
  &gt;     779   pipeline_conf=pipeline_conf)
  &gt; --&gt; 781 return self.create_run_from_pipeline_package(
  &gt;     782   pipeline_file=pipeline_package_path,
  &gt;     783   arguments=arguments,
  &gt;     784   run_name=run_name,
  &gt;     785   experiment_name=experiment_name,
  &gt;     786   namespace=namespace,
  &gt;     787   pipeline_root=pipeline_root,
  &gt;     788 )
  &gt; 
  &gt; File /opt/conda/lib/python3.8/site-packages/kfp/_client.py:842, in
  &gt; Client.create_run_from_pipeline_package(self, pipeline_file,
  &gt; arguments, run_name, experiment_name, namespace, pipeline_root)
  &gt;     838 experiment_name = overridden_experiment_name or 'Default'
  &gt;     839 run_name = run_name or (pipeline_name + ' ' +
  &gt;     840                         datetime.datetime.now().strftime(
  &gt;     841                             '%Y-%m-%d %H-%M-%S'))
  &gt; --&gt; 842 experiment = self.create_experiment(name=experiment_name, namespace=namespace)
  &gt;     843 run_info = self.run_pipeline(
  &gt;     844     experiment_id=experiment.id,
  &gt;     845     job_name=run_name,
  &gt;     846     pipeline_package_path=pipeline_file,
  &gt;     847     params=arguments,
  &gt;     848     pipeline_root=pipeline_root)
  &gt;     849 return RunPipelineResult(self, run_info)
  &gt; 
  &gt; File /opt/conda/lib/python3.8/site-packages/kfp/_client.py:366, in
  &gt; Client.create_experiment(self, name, description, namespace)
  &gt;     364 experiment = None
  &gt;     365 try:
  &gt; --&gt; 366   experiment = self.get_experiment(experiment_name=name, namespace=namespace)
  &gt;     367 except ValueError as error:
  &gt;     368   # Ignore error if the experiment does not exist.
  &gt;     369   if not str(error).startswith('No experiment is found with name'):
  &gt; 
  &gt; File /opt/conda/lib/python3.8/site-packages/kfp/_client.py:478, in
  &gt; Client.get_experiment(self, experiment_id, experiment_name, namespace)
  &gt;     468 experiment_filter = json.dumps({ 
  &gt;     469     &quot;predicates&quot;: [ 
  &gt;     470       {     (...)
  &gt;     475     ] 
  &gt;     476   })
  &gt;     477 if namespace:
  &gt; --&gt; 478   result = self._experiment_api.list_experiment(
  &gt;     479     filter=experiment_filter,
  &gt;     480     resource_reference_key_type=kfp_server_api.models.api_resource_type.ApiResourceType.NAMESPACE,
  &gt; 
  &gt;     481     resource_reference_key_id=namespace)
  &gt;     482 else:
  &gt;     483   result = self._experiment_api.list_experiment(filter=experiment_filter)
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/api/experiment_service_api.py:567,
  &gt; in ExperimentServiceApi.list_experiment(self, **kwargs)
  &gt;     532 &quot;&quot;&quot;Finds all experiments. Supports pagination, and sorting on certain fields.  # noqa: E501
  &gt;     533 
  &gt;     534 This method makes a synchronous HTTP request by default. To make an    (...)
  &gt;     564 :rtype: ApiListExperimentsResponse
  &gt;     565 &quot;&quot;&quot;
  &gt;     566 kwargs['_return_http_data_only'] = True
  &gt; --&gt; 567 return self.list_experiment_with_http_info(**kwargs)
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/api/experiment_service_api.py:668,
  &gt; in ExperimentServiceApi.list_experiment_with_http_info(self, **kwargs)
  &gt;     665 # Authentication setting
  &gt;     666 auth_settings = ['Bearer']  # noqa: E501
  &gt; --&gt; 668 return self.api_client.call_api(
  &gt;     669     '/apis/v1beta1/experiments', 'GET',
  &gt;     670     path_params,
  &gt;     671     query_params,
  &gt;     672     header_params,
  &gt;     673     body=body_params,
  &gt;     674     post_params=form_params,
  &gt;     675     files=local_var_files,
  &gt;     676     response_type='ApiListExperimentsResponse',  # noqa: E501
  &gt;     677     auth_settings=auth_settings,
  &gt;     678     async_req=local_var_params.get('async_req'),
  &gt;     679     _return_http_data_only=local_var_params.get('_return_http_data_only'),  # noqa: E501
  &gt;     680     _preload_content=local_var_params.get('_preload_content', True),
  &gt;     681     _request_timeout=local_var_params.get('_request_timeout'),
  &gt;     682     collection_formats=collection_formats)
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py:364,
  &gt; in ApiClient.call_api(self, resource_path, method, path_params,
  &gt; query_params, header_params, body, post_params, files, response_type,
  &gt; auth_settings, async_req, _return_http_data_only, collection_formats,
  &gt; _preload_content, _request_timeout, _host)
  &gt;     327 &quot;&quot;&quot;Makes the HTTP request (synchronous) and returns deserialized data.
  &gt;     328 
  &gt;     329 To make an async_req request, set the async_req parameter.    (...)
  &gt;     361     then the method will return the response directly.
  &gt;     362 &quot;&quot;&quot;
  &gt;     363 if not async_req:
  &gt; --&gt; 364     return self.__call_api(resource_path, method,
  &gt;     365                            path_params, query_params, header_params,
  &gt;     366                            body, post_params, files,
  &gt;     367                            response_type, auth_settings,
  &gt;     368                            _return_http_data_only, collection_formats,
  &gt;     369                            _preload_content, _request_timeout, _host)
  &gt;     371 return self.pool.apply_async(self.__call_api, (resource_path,
  &gt;     372                                                method, path_params,
  &gt;     373                                                query_params,    (...)
  &gt;     381                                                _request_timeout,
  &gt;     382                                                _host))
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py:188,
  &gt; in ApiClient.__call_api(self, resource_path, method, path_params,
  &gt; query_params, header_params, body, post_params, files, response_type,
  &gt; auth_settings, _return_http_data_only, collection_formats,
  &gt; _preload_content, _request_timeout, _host)
  &gt;     186 except ApiException as e:
  &gt;     187     e.body = e.body.decode('utf-8') if six.PY3 else e.body
  &gt; --&gt; 188     raise e
  &gt;     190 content_type = response_data.getheader('content-type')
  &gt;     192 self.last_response = response_data
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py:181,
  &gt; in ApiClient.__call_api(self, resource_path, method, path_params,
  &gt; query_params, header_params, body, post_params, files, response_type,
  &gt; auth_settings, _return_http_data_only, collection_formats,
  &gt; _preload_content, _request_timeout, _host)
  &gt;     177     url = _host + resource_path
  &gt;     179 try:
  &gt;     180     # perform request and return response
  &gt; --&gt; 181     response_data = self.request(
  &gt;     182         method, url, query_params=query_params, headers=header_params,
  &gt;     183         post_params=post_params, body=body,
  &gt;     184         _preload_content=_preload_content,
  &gt;     185         _request_timeout=_request_timeout)
  &gt;     186 except ApiException as e:
  &gt;     187     e.body = e.body.decode('utf-8') if six.PY3 else e.body
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py:389,
  &gt; in ApiClient.request(self, method, url, query_params, headers,
  &gt; post_params, body, _preload_content, _request_timeout)
  &gt;     387 &quot;&quot;&quot;Makes the HTTP request using RESTClient.&quot;&quot;&quot;
  &gt;     388 if method == &quot;GET&quot;:
  &gt; --&gt; 389     return self.rest_client.GET(url,
  &gt;     390                                 query_params=query_params,
  &gt;     391                                 _preload_content=_preload_content,
  &gt;     392                                 _request_timeout=_request_timeout,
  &gt;     393                                 headers=headers)
  &gt;     394 elif method == &quot;HEAD&quot;:
  &gt;     395     return self.rest_client.HEAD(url,
  &gt;     396                                  query_params=query_params,
  &gt;     397                                  _preload_content=_preload_content,
  &gt;     398                                  _request_timeout=_request_timeout,
  &gt;     399                                  headers=headers)
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/rest.py:230, in
  &gt; RESTClientObject.GET(self, url, headers, query_params,
  &gt; _preload_content, _request_timeout)
  &gt;     228 def GET(self, url, headers=None, query_params=None, _preload_content=True,
  &gt;     229         _request_timeout=None):
  &gt; --&gt; 230     return self.request(&quot;GET&quot;, url,
  &gt;     231                         headers=headers,
  &gt;     232                         _preload_content=_preload_content,
  &gt;     233                         _request_timeout=_request_timeout,
  &gt;     234                         query_params=query_params)
  &gt; 
  &gt; File
  &gt; /opt/conda/lib/python3.8/site-packages/kfp_server_api/rest.py:224, in
  &gt; RESTClientObject.request(self, method, url, query_params, headers,
  &gt; body, post_params, _preload_content, _request_timeout)
  &gt;     221     logger.debug(&quot;response body: %s&quot;, r.data)
  &gt;     223 if not 200 &lt;= r.status &lt;= 299:
  &gt; --&gt; 224     raise ApiException(http_resp=r)
  &gt;     226 return r
  &gt; 
  &gt; ApiException: (500) Reason: Internal Server Error HTTP response
  &gt; headers: HTTPHeaderDict({'content-type': 'application/json', 'date':
  &gt; 'Sun, 14 Aug 2022 05:07:05 GMT', 'x-envoy-upstream-service-time':
  &gt; '26', 'server': 'envoy', 'transfer-encoding': 'chunked'}) HTTP
  &gt; response body: {&quot;error&quot;:&quot;Internal error: Unauthenticated: Request
  &gt; header error: there is no user identity header.: Request header error:
  &gt; there is no user identity header.\nFailed to authorize with API
  &gt; resource
  &gt; 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.(*ExperimentServer).canAccessExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:249\ngithub.com/kubeflow/pipelines/backend/src/apiserver/server.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:148\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581\nFailed
  &gt; to authorize with API resource
  &gt; 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.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:150\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581&quot;,&quot;code&quot;:13,&quot;message&quot;:&quot;Internal
  &gt; error: Unauthenticated: Request header error: there is no user
  &gt; identity header.: Request header error: there is no user identity
  &gt; header.\nFailed to authorize with API resource
  &gt; 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.(*ExperimentServer).canAccessExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:249\ngithub.com/kubeflow/pipelines/backend/src/apiserver/server.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:148\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581\nFailed
  &gt; to authorize with API resource
  &gt; 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.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:150\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581&quot;,&quot;details&quot;:[{&quot;@type&quot;:&quot;type.googleapis.com/api.Error&quot;,&quot;error_message&quot;:&quot;Internal
  &gt; error: Unauthenticated: Request header error: there is no user
  &gt; identity header.: Request header error: there is no user identity
  &gt; header.\nFailed to authorize with API resource
  &gt; 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.(*ExperimentServer).canAccessExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:249\ngithub.com/kubeflow/pipelines/backend/src/apiserver/server.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:148\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581\nFailed
  &gt; to authorize with API resource
  &gt; 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.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:150\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581&quot;,&quot;error_details&quot;:&quot;Internal
  &gt; error: Unauthenticated: Request header error: there is no user
  &gt; identity header.: Request header error: there is no user identity
  &gt; header.\nFailed to authorize with API resource
  &gt; 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.(*ExperimentServer).canAccessExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:249\ngithub.com/kubeflow/pipelines/backend/src/apiserver/server.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:148\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581\nFailed
  &gt; to authorize with API resource
  &gt; 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.(*ExperimentServer).ListExperiment\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/server/experiment_server.go:150\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler.func1\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1089\nmain.apiServerInterceptor\n\t/go/src/github.com/kubeflow/pipelines/backend/src/apiserver/interceptor.go:30\ngithub.com/kubeflow/pipelines/backend/api/go_client._ExperimentService_ListExperiment_Handler\n\t/go/src/github.com/kubeflow/pipelines/backend/api/go_client/experiment.pb.go:1091\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1282\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:1616\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.44.0/server.go:921\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581&quot;}]}
  </code></pre>
  <h2>Update</h2>
  <p>After I got the comment from Adiii, I try again.<br />
  I got 404 response error. <code>KeyError: 'authservice_session'</code> caused by the error.<br />
  I do port-forwarding by<br />
  <code>kubectl port-forward svc/istio-ingressgateway -n istio-system 8888:80</code></p>
  <p><strong>Code snippet</strong>:</p>
  <pre><code>import requests
  
  HOST = &quot;http://localhost:8888/&quot;
  USERNAME = &quot;user@example.com&quot;
  PASSWORD = &quot;12341234&quot;
  NAMESPACE = &quot;kubeflow-user-example-com&quot;
  
  session = requests.Session()
  response = session.get(HOST)
  print(response)
  headers = {
      &quot;Content-Type&quot;: &quot;application/x-www-form-urlencoded&quot;,
  }
  
  data = {&quot;login&quot;: USERNAME, &quot;password&quot;: PASSWORD}
  session.post(response.url, headers=headers, data=data)
  session_cookie = session.cookies.get_dict()[&quot;authservice_session&quot;]
  
  client = kfp.Client(
      host=f&quot;{HOST}/pipeline&quot;,
      cookies=f&quot;authservice_session={session_cookie}&quot;,
      namespace=NAMESPACE,
  )
  
  print(client.list_pipelines())
  </code></pre>
  <p><strong>Error message:</strong></p>
  <pre><code>&lt;Response [404]&gt;
  ---------------------------------------------------------------------------
  KeyError                                  Traceback (most recent call last)
  Input In [8], in &lt;cell line: 17&gt;()
       15 data = {&quot;login&quot;: USERNAME, &quot;password&quot;: PASSWORD}
       16 session.post(response.url, headers=headers, data=data)
  ---&gt; 17 session_cookie = session.cookies.get_dict()[&quot;authservice_session&quot;]
       19 client = kfp.Client(
       20     host=f&quot;{HOST}/pipeline&quot;,
       21     cookies=f&quot;authservice_session={session_cookie}&quot;,
       22     namespace=NAMESPACE,
       23 )
       25 print(client.list_pipelines())
  
  KeyError: 'authservice_session'
  </code></pre>