https://www.ory.sh/ logo
l

late-toddler-40355

03/04/2022, 1:43 PM
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

proud-plumber-24205

03/07/2022, 12:30 PM
Hi @User Are you using the
ory/client
? or the
ory/kratos-client
?
l

late-toddler-40355

03/08/2022, 3:52 PM
@User Hi Alano, I'm using the kratos-client: https://github.com/ory/kratos-client-go
p

proud-plumber-24205

03/08/2022, 5:35 PM
l

late-toddler-40355

03/08/2022, 5:43 PM
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

proud-plumber-24205

03/08/2022, 7:05 PM
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
4 Views