May not be the correct place for this, but I'm get...
# talk-kratos
l
May not be the correct place for this, but I'm getting an error when testing getting the version through the Kratos Go SDK:
Copy code
....
    kratosAdmin := kratos.NewAPIClient(&kratos.Configuration{
		Host:             kratosAdminUrl.Host,
		Scheme:           kratosAdminUrl.Scheme,
		DefaultHeader:    map[string]string{},
		Debug:            true,
		Servers:          []kratos.ServerConfiguration{},
		OperationServers: map[string]kratos.ServerConfigurations{},
		HTTPClient:       &http.Client{},
	})
	resp, _, err := kratosAdmin.MetadataApi.GetVersionExecute(kratos.MetadataApiApiGetVersionRequest{
		ApiService: &kratos.MetadataApiService{},
	})
TIL that
Servers
needs to be populated even if host and scheme are specified.
p
Hi @User Are you using the
ory/client
? or the
ory/kratos-client
?
l
@User Hi Alano, I'm using the kratos-client: https://github.com/ory/kratos-client-go
p
l
Will check it out. I'm curious, why are there two separate clients? It looks like
ory/sdk
is an alternative for the kratos client. Will
ory/sdk
support other ory services (hydra/keto/oathkeeper)?
p
We are in the process of migrating all of the sdk clients into one client which can be used across the different open source projects as well as the cloud offering
👍 1