Hi, when we try to update a native registration fl...
# talk-kratos
s
Hi, when we try to update a native registration flow after its expires_at time, we get a
410
error, which is expected. The issue is, I can't parse the json to
SelfServiceFlowExpiredError
java model. I'm on version 1.1.4. What I receive from kratos 0.11.1
Copy code
{
  "error": {
    "id": "self_service_flow_expired",
    "code": 410,
    "status": "Gone",
    "reason": "The self-service flow expired 23.89 minutes ago, initialize a new one.",
    "message": "self-service flow expired"
  },
  "expired_at": "2023-01-20T14:20:44.163484771Z",
  "since": 1433524887924,
  "use_flow_id": "c88985c6-e4c3-40df-b3a7-a5b5c694f062"
}
Looking at the model, it expects a flat structure. Something like this
Copy code
{
  "id": "self_service_flow_expired",
  "code": 410,
  "status": "Gone",
  "reason": "The self-service flow expired 23.89 minutes ago, initialize a new one.",
  "message": "self-service flow expired",
  "expired_at": "2023-01-20T14:20:44.163484771Z",
  "since": 1433524887924,
  "use_flow_id": "c88985c6-e4c3-40df-b3a7-a5b5c694f062"
}
Thanks!
The documentation example is outdated, or confusing at the very least. It lists that a `410`returns
errorGeneric
, but on a previous paragraph it specifies that
use_flow_id
can be present in the body, which is more aligned with the real response I get
p
I just ran into this as well. You may be mixing Ory Network SDKs with self-hosted SDKs. Are you self hosting? See https://ory-community.slack.com/archives/C012RJ2MQ1H/p1674156770593119
s
Thanks a lot for the link to your thread 🙇 It looks like the same case, yes I also hadn't noticed the difference between ory client and the rest of the artifacts