You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How did you deploy Kubeflow Pipelines (KFP)? install via kubeflow manifest with version v1.4
KFP version: v1.7.0
KFP SDK version: v1.7.0 (golang version under backend/api/go_http_client)
Steps to reproduce
start pipeline backend api server by listening port 8888
sent http request with swagger generated code stub with the following code example
package main
import (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/runtime"
healthz_client "github.com/kubeflow/pipelines/backend/api/go_http_client/healthz_client"
healthz_service "github.com/kubeflow/pipelines/backend/api/go_http_client/healthz_client/healthz_service"
)
func main() {
healthServiceClient := healthz_client.New(
client.New(
"localhost:8888",
healthz_client.DefaultBasePath,
[]string{"http"}),
strfmt.NewFormats(),
)
clientAuthInfoWriter := runtime.ClientAuthInfoWriterFunc(func(clientRequest runtime.ClientRequest, registry strfmt.Registry) error {
return nil
})
resp, err := p.HealthServiceClient.HealthzService.GetHealthz(healthz_service.NewGetHealthzParams, clientAuthInfoWriter)
if err != nil {
// should not be here
}
}
When I was sent healthz endpoint (/apis/v1beta1/healthz) with go_http_client(swagger generated code stubs), the generated code stub failed to decode the response with the error message &{false} (*healthz_model.APIGetHealthzResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
however, the message was wrapped into a json struct but the content type was specified with text/plain.
This triggered APIGetHealthzResponse failed to decode the response, as it failed to implement TextUnmarshaler interface.
The server code (on v1.7.0 as well as on master) also confirmed this
Environment
Steps to reproduce
/apis/v1beta1/healthz
) with go_http_client(swagger generated code stubs), the generated code stub failed to decode the response with the error message&{false} (*healthz_model.APIGetHealthzResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
the http log are displayed below:
however, the message was wrapped into a json struct but the content type was specified with
text/plain
.This triggered APIGetHealthzResponse failed to decode the response, as it failed to implement
TextUnmarshaler
interface.The server code (on v1.7.0 as well as on master) also confirmed this
pipelines/backend/src/apiserver/main.go
Line 146 in 74c7773
Expected result
the golang example mentioned earier with swagger generated stub should work well.
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
if this was confirmed as bug, I would like to submit a patch for this. Thanks
The text was updated successfully, but these errors were encountered: