Hello, How can I troubleshoot hooks not firing? I...
# ory-network
a
Hello, How can I troubleshoot hooks not firing? I am working in local with ngrok configured and while calls to the ngrok endpoint from Postman do work, the ones from Ory Network do not seem to go through. I have checked the order of the hooks as per the documentation and my "after registration" wehbook is before the session hook.
n
Hello, could this be the issue?
If an Ory Action webhook fails to trigger, verify whether the sign in after registration
session
hook is activated
From: https://www.ory.sh/docs/troubleshooting/troubleshoot-actions
a
Hello Kristian, thanks for your answer. I checked that and unfortunately, the session hook is indeed the last one. I will try other webhooks to see if they also fail
I have tested and none of the registration hook fires even if done before and even if async. The login hooks do work, on the other hand.
So, in fact, I add enabled the registration hook on all authentication method. Even if it was displayed before the session hook, it seemed to be considered after. What I did: I applied my custom hook for each authentication method separately and ensured the session hook was indeed after. As a consequence, it now works properly.
🙌 1