Hey guys! I am configuring Ory kratos v0.13.0 I a...
# talk-kratos
l
Hey guys! I am configuring Ory kratos v0.13.0 I am defining two webhooks, first with parse: true and second with parse: false. Only the first webhook is actually called. The non-interupting webhook is never executed. So something like this (as described in docs) does not work:
Copy code
- hook: web_hook
  config:
    response:
      parse: true
- hook: web_hook
  config:
    response:
      parse: false
m
Hey @lemon-apartment-14887 Are you still facing this issue? Are you hosting Kratos yourself or in Ory Network?
l
Hey! The problem was that I had hooks in following order: • session • web_hook • web_hook And only the first two actually fired. When I placed the session hook in the end, the issue disappeared.
m
Ah I see. This is documented here: https://www.ory.sh/docs/actions/session#toggle-action @lemon-apartment-14887
This action modifies the HTTP response. As a result, no other hooks can be executed after the
session
action. If you want to trigger multiple actions that modify the HTTP response in your setup, make sure that
session
is triggered last.
Any way we can make this clearer or reference it in another webhook doc?
l