white-napkin-23141
04/14/2023, 3:33 PM--dev
but once we removed it we started getting these errors. Does anyone know what might be happening?wide-dawn-74672
04/14/2023, 3:34 PMwhite-napkin-23141
04/14/2023, 3:37 PMresponse, err := c.client.IdentityApi.DeleteIdentity(c.withAdminContext(ctx), userID).Execute()
^ The call looks like this
func (c *kratosClient) withAdminContext(ctx context.Context) context.Context {
return context.WithValue(ctx, kratos.ContextServerVariables, map[string]string{"host": c.adminAddress})
}
^ definition of withAdminContext
configuration := kratos.NewConfiguration()
configuration.Servers = []kratos.ServerConfiguration{
{
URL: "{host}",
Variables: map[string]kratos.ServerVariable{
"host": {
Description: "Host, default public",
DefaultValue: publicKratosAddress,
},
},
},
}
configuration is setup like thatwide-dawn-74672
04/14/2023, 3:38 PMwide-dawn-74672
04/14/2023, 3:38 PMwhite-napkin-23141
04/14/2023, 3:39 PM--dev
is removed from the kratos startup flags?wide-dawn-74672
04/14/2023, 3:40 PMsteep-lamp-91158
white-napkin-23141
04/17/2023, 1:41 PM404 page not found
is the response body and undefined response type
is the err
we’re getting back in the golang sdkwhite-napkin-23141
04/17/2023, 1:41 PM--dev
again to see if it would work, but it’s the same resultwhite-napkin-23141
04/17/2023, 1:42 PMsteep-lamp-91158
steep-lamp-91158
white-napkin-23141
04/17/2023, 1:54 PMtime=2023-04-17T13:53:21Z level=info msg=started handling request http_request=map[headers:map[accept:application/json accept-encoding:gzip user-agent:OpenAPI-Generator/1.0.0/go] host:ory-kratos:4434 method:DELETE path:/admin/identities/ query:<nil> remote:10.192.215.101:49894 scheme:http]
time=2023-04-17T13:53:21Z level=info msg=completed handling request http_request=map[headers:map[accept:application/json accept-encoding:gzip user-agent:OpenAPI-Generator/1.0.0/go] host:ory-kratos:4434 method:DELETE path:/admin/identities/ query:<nil> remote:10.192.215.101:49894 scheme:http] http_response=map[headers:map[content-type:text/plain; charset=utf-8 x-content-type-options:nosniff] size:19 status:404 text_status:Not Found took:258.56µs]
white-napkin-23141
04/17/2023, 1:55 PMsteep-lamp-91158
steep-lamp-91158
white-napkin-23141
04/17/2023, 1:56 PMsteep-lamp-91158
/admin/identities/whatever-id