Hi everyone, we've implemented Ory Network and now...
# ory-network
s
Hi everyone, we've implemented Ory Network and now we're in the monitoring phase. We've noticed a couple of errors in the Logs & events for
Registration failed
that we're not sure how to handle: •
I[#] S[#/then] if-then failed I[#] S[#/then/required] missing properties: "password"
• no error reason, but with
Flow ID = 00000000-0000-0000-0000-000000000000
and also for `Login failed`: •
could not find a strategy to login with
•
A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?
we're using Ory elements for the UI, so a lot of these shouldn't be possible. Maybe you can point us in the right direction 🙏
m
Hello @swift-napkin-52758 you are using the built-in Account Experience or did you build a custom UI using Ory Elements? Let me go over each error:
I[#] S[#/then] if-then failed I[#] S[#/then/required] missing properties: "password"
This error is coming from your identity schema validation. It means the registration payload is missing the required
"password"
property. This typically happens if the frontend form does not send the password field, or if the user submits the form without filling it in. If you have conditional requirements in your schema (using
if/then/required
), make sure your UI logic matches the schema’s requirements.
no error reason, but with Flow ID = 00000000-0000-0000-0000-000000000000
A flow ID of all zeroes is not valid. This usually means the frontend or backend is making a request without a valid flow context.
could not find a strategy to login with
This error occurs when the login flow is submitted without specifying a valid authentication method (e.g., password, code, oidc). It can happen if the form is submitted twice, or if the flow is already consumed, or if the configuration is missing enabled strategies.
A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?
This error occurs when a user tries to start a login flow while already having a valid session. Ory blocks this to prevent session confusion. If you want to force re-authentication, you need to start the login flow with
?refresh=true
. Do these happen a lot or is it rare instances?
s
Hey @magnificent-energy-493! Thanks for the reply. We're using Ory Elements with a custom UI.
Do these happen a lot or is it rare instances?
Happens a lot actually. For example, in the last hour we've had all of these for `Login failed`: •
A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?
•
Context canceled
•
Could not find a strategy to login with
And these in the last 24h for `Registration failed`: •
I[#] S[#/then] if-then failed I[#] S[#/then/required] missing properties: "password"
•
Flow ID = 00000000-0000-0000-0000-000000000000
m
Hm I tried out your signup/login flows and it all looks completely fine. Are you confident that these errors are tied to real people trying to access your service and not e.g. bots or something like that? I can also check in with SRE if they see anything in our monitoring. @bland-eye-99092 did you maybe come across this before?
s
Yeah, it works fine for us in most cases too, yet still we get these error logs every now and then (like 10-20 per hour), so we wanted to follow up and see what's causing them.
Are you confident that these errors are tied to real people trying to access your service and not e.g. bots or something like that
I am not, any way we could investigate this?
b
Hi Ana, I am not aware of issues related to this. Could you share some of the events in a DM to me here, and we'll be happy to take a look for you. Thank you!