Open fraschm1998 opened 7 months ago
Despite what the return value says, your login is may be succesful: If the error is successful, following the link returned in the action field of the json object will supply the session and user data. Additionally, you can strip the flow id from the ?flow=
parameter of the url:
\"action\":\"http://127.0.0.1:4455/.ory/kratos/
public/self-service/registration?flow=523d1fbe-ea1c-41f5-9668-ea5f2e835e77
A few notes for posterity:
error
field will switch from none
to a string description of the error that should be viewed by the user. If you're doing automatic backoff, logging, etc you should be sure to adjust your predicates to distinguish between a successful 422 error and an erroneous 422 error. However, since it's not documented as whether this endpoint can emit an 422: unprocessable content
, I would advise against handling it as a general caseSome if this is probably wrong. The api's use of 422 is really poorly documented - for example, the documentation explicitly that a 422 should not be returned on successs...yet it does. Likewise, native flows aren't supposed to return 422 at all, but they do 🤷
You shouldn't trust what the docs say or what the api returns, but instead either search the identities using the admin api or the ory console.
Preflight checklist
Ory Network Project
No response
Describe the bug
UpdateRegistrationFlow ResponseContent.entity returns a different empty status compared to ResponseContent.statuscode. ErrorBrowserLocationChangeRequired always returns None:
Reproducing the bug
Make a post request with an already registered email address.
Relevant log output
No response
Relevant configuration
No response
Version
ory-client 1.6.1 with latest docker container
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response