plain-lunch-50969
01/19/2023, 7:32 PMclient-go
? The API documents mention errorGeneric
but the ErrorGeneric
struct in client-go
does not match the structure so it fails to json unmarshal.plain-lunch-50969
01/19/2023, 7:34 PM{
"error": {
"code": 409,
"status": "Conflict",
"message": "Unable to insert or update resource because a resource with that value exists already"
}
}
plain-lunch-50969
01/19/2023, 7:34 PMtype GenericErrorContent struct {
Debug *string `json:"debug,omitempty"`
Error *string `json:"error,omitempty"`
ErrorDescription *string `json:"error_description,omitempty"`
Message *string `json:"message,omitempty"`
StatusCode *int64 `json:"status_code,omitempty"`
}
plain-lunch-50969
01/19/2023, 7:37 PMplain-lunch-50969
01/19/2023, 7:44 PMgo get <http://github.com/ory/client-go|github.com/ory/client-go>
is not pulling the v1.15 tag. Anyone know why that would be?plain-lunch-50969
01/19/2023, 7:47 PMgo get <http://github.com/ory/client-go@v1.15|github.com/ory/client-go@v1.15>
does not.
So frustrating.plain-lunch-50969
01/19/2023, 7:55 PMmodel_generic_error_content.go
Both files say API version: v1.1.5
. Yet one has the alpha v0.2 struct and the other has the updated struct.plain-lunch-50969
01/19/2023, 7:56 PMswift-chef-97535
01/19/2023, 7:58 PMplain-lunch-50969
01/19/2023, 7:59 PM<http://github.com/ory/client-go|github.com/ory/client-go> v1.1.5 // indirect
plain-lunch-50969
01/19/2023, 8:00 PMAPI version: v1.1.5
but v0.2 structs?plain-lunch-50969
01/19/2023, 8:01 PMplain-lunch-50969
01/19/2023, 8:04 PMv1.1.5
vs v1.15
swift-chef-97535
01/19/2023, 8:05 PMplain-lunch-50969
01/19/2023, 8:06 PMswift-chef-97535
01/19/2023, 8:07 PMswift-chef-97535
01/19/2023, 8:08 PMplain-lunch-50969
01/19/2023, 8:09 PMgo get .... v1.1.5
plain-lunch-50969
01/19/2023, 8:10 PMplain-lunch-50969
01/19/2023, 8:14 PMplain-lunch-50969
01/19/2023, 8:21 PMplain-lunch-50969
01/19/2023, 8:25 PMkratos-client-go
and client-go
differ. go get <http://github.com/ory/kratos-client-go@v0.11.1|github.com/ory/kratos-client-go@v0.11.1>
pulls down the correct GenericErorContent - but the APIs differ in incompatible ways.plain-lunch-50969
01/19/2023, 8:28 PMmagnificent-energy-493
plain-lunch-50969
01/20/2023, 1:31 PMThe client SDK works with self-hosted Ory services, but it is recommended to use the dedicated client. Read more in the self-hosting documentation for each project under Reference/SDK.
This appears to not be true? The SDKs have different formats and are not compatible, This is the issue I saw, right?
Which ory (self-hosted or Ory Network) is the API for? This is also not clear. I don't think it's stated anywhere. This one: https://www.ory.sh/docs/reference/api ?plain-lunch-50969
01/20/2023, 1:35 PMmagnificent-energy-493
plain-lunch-50969
01/20/2023, 2:38 PMmagnificent-energy-493
plain-lunch-50969
01/20/2023, 4:08 PM