Hey all, just picking up Kratos and am running int...
# talk-kratos
k
Hey all, just picking up Kratos and am running into an issue where the
/whoami
endpoint is returning a 200 OK, but an empty response body. This is of course preventing a successful
/user-details
call. Does anyone know why
whoami
would return an empty response?
I am running Kratos
v0.8.0-alpha.2
The
X-Kratos-Authenticated-Identity-Id
is also present on the response header, and per the docs means the request was successful.
It looks like maybe in the Kratos version i am using it does not return a response body.
m
some issue with your config maybe, can you post the kratos.yml?
k
Can you confirm that the
/whoami
call should return an empty response body on 200 OK statuses?
m
No it should respond with a json like this
Copy code
{
  "active": true,
  "authenticated_at": "2019-08-24T14:15:22Z",
  "authentication_methods": [
    {}
  ],
  "authenticator_assurance_level": "aal0",
  "expires_at": "2019-08-24T14:15:22Z",
  "id": "string",
  "identity": {
    "created_at": "2019-08-24T14:15:22Z",
    "credentials": {},
    "id": "string",
    "recovery_addresses": [],
    "schema_id": "string",
    "schema_url": "string",
    "state": "active",
    "state_changed_at": "2019-08-24T14:15:22Z",
    "traits": null,
    "updated_at": "2019-08-24T14:15:22Z",
    "verifiable_addresses": []
  },
  "issued_at": "2019-08-24T14:15:22Z"
}
Content type application/json
k
Okay, good to know. Currently all I'm getting back is a 200 OK, a header with name
x-kratos-authenticated-identity-id
and an empty response body. What sort of thing in the config could cause kratos to return an empty response body?
p
Hi @User could you try Kratos
v0.8.0-alpha.3
?
k
Hey @User, sorry - I should've posted earlier. My issue was resolved.