https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
k

kind-pencil-94329

01/17/2022, 6:17 PM
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

magnificent-energy-493

01/17/2022, 6:59 PM
some issue with your config maybe, can you post the kratos.yml?
k

kind-pencil-94329

01/17/2022, 7:00 PM
Can you confirm that the
/whoami
call should return an empty response body on 200 OK statuses?
m

magnificent-energy-493

01/17/2022, 7:01 PM
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

kind-pencil-94329

01/17/2022, 7:05 PM
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

proud-plumber-24205

01/18/2022, 8:04 AM
Hi @User could you try Kratos
v0.8.0-alpha.3
?
k

kind-pencil-94329

01/18/2022, 5:28 PM
Hey @User, sorry - I should've posted earlier. My issue was resolved.
3 Views