bitter-dog-20924
05/30/2024, 5:20 PM@ory/kratos-client
• Error: 422 Unprocessable Entity
Here is a snippet of the relevant code:
async function initializeFlow(): Promise<void> {
await kratosClient
.createNativeRecoveryFlow()
.then(({ data: flow }) => flow)
.then(setFlow)
.catch((err) => {
console.log(err);
});
}
useFocusEffect(
useCallback(() => {
initializeFlow();
return () => {
setFlow(undefined);
};
}, [kratosClient])
);
I would like to know:
1. Is it possible to resolve this issue using @ory/kratos-client
, ?
2. Has anyone encountered a similar issue and found a solution or workaround?
3. Any specific configurations or steps I might be missing?
Any help or guidance would be greatly appreciated!
Thanks in advance!dazzling-napkin-4938
05/31/2024, 12:02 AMbitter-dog-20924
05/31/2024, 8:57 AMsteep-lamp-91158
bitter-dog-20924
05/31/2024, 2:36 PMsteep-lamp-91158
bitter-dog-20924
05/31/2024, 4:14 PMbitter-dog-20924
05/31/2024, 5:20 PMgray-library-49237
06/01/2024, 9:21 PMtime=2024-06-01T21:10:26Z level=error msg=An error occurred and is being forwarded to the error user interface. audience=application error=map[debug: message:The request was malformed or contained invalid parameters reason:AAL2 login via code requires the `via` query parameter stack_trace: