bitter-dog-20924
06/07/2024, 9:30 AM{
"error": "Bad Request",
"message": "Invalid request"
}
What I've Tried
API Endpoint and Payload: I've double-checked the API endpoint and the payload being sent. The payload structure follows the Ory Kratos documentation:
{
"email": "user@example.com"
}
Configuration: I have reviewed my Kratos configuration file to ensure the recovery settings are correctly configured. The selfservice.recovery
section is enabled.
Request
I would appreciate any guidance or suggestions on what might be causing this issue. Specifically:
1. Are there any common misconfigurations that could lead to this 400 error?
2. What additional steps can I take to debug this problem?
3. Are there any specific logs or configurations I should focus on?
Additional Information
You can find my project's configurations and code on GitHub: GitHub Repository Link. This repository includes:
• kratos.yml
• docker-compose.yml
• Application code
Thank you for your help!
Best regards,
Tanmay Vaij
@magnificent-energy-493 @steep-lamp-91158 @dazzling-napkin-4938dazzling-napkin-4938
06/11/2024, 1:40 AMdazzling-napkin-4938
06/11/2024, 1:41 AMbitter-dog-20924
06/13/2024, 7:01 AMdazzling-napkin-4938
06/13/2024, 7:13 AMdazzling-napkin-4938
06/13/2024, 7:14 AMbitter-dog-20924
06/13/2024, 9:49 AMdazzling-napkin-4938
06/14/2024, 1:33 AMdazzling-napkin-4938
06/14/2024, 1:35 AM@ory/client
FrontendApi looks like this:
kratos.updateRecoveryFlow({
flow: flow.data.id,
updateRecoveryFlowBody: {
method: 'code',
email: action.email,
csrf_token: flow.data.ui.nodes.find((n) => n.attributes['name'] === 'csrf_token')
.attributes['value'],
},
})
bitter-dog-20924
06/14/2024, 11:50 AMdazzling-napkin-4938
06/16/2024, 11:57 PM