<@U04UQ68083H> when i configure 2 webhooks with th...
# ory-copilot
f
@chilly-king-10285 when i configure 2 webhooks with the same action, only 1 is executed. What can I do?
c
A message from kapa.ai
If you have configured two webhooks with the same action and only one is being executed, it could be due to the order of execution. For instance, if you have a
session
hook activated, it modifies the HTTP response and no other hooks are executed after it. Therefore, you need to ensure that the
session
hook is executed last. You can debug this issue by exporting the Ory Identities configuration and checking the order of the actions. The
session
hook should be the last one to run. Here is how you can export the Ory Identities configuration:
Copy code
bash ory identities export --format yaml
For more information on the
session
hook, you can refer to the [Sign in after registration](https://www.ory.sh/docs/actions/session) documentation. If this doesn't solve your issue, it might be helpful to check the configuration of your webhooks. Make sure that the
hook
is set to
web_hook
and the URL, method, and body are correctly defined. Here is an example of a webhook configuration:
Copy code
yaml hook: web_hook config:     url: <https://test.hook.site.sh/before_login_hook>   method: POST   body: <base64://ENCODED_JSONNET>   response:       ignore: false     parse: false   auth:       type:      config:
For more details, you can refer to the [Configuration overview](https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks#configuration-overview) in the Ory documentation. If you're still facing issues, please provide more details about your configuration and the specific problem you're encountering.