We have a draft concept of how to enable observabi...
# ory-network
h
We have a draft concept of how to enable observability for webhooks but itโ€™s not yet fully there ๐Ÿ˜ž Can you show your webhook config?
r
Sure,
Copy code
registration:
      after:
        hooks:
        - config:
            auth:
              config:
                in: header
                name: Authorization
                value: bearer REDACTED
              type: api_key
            body: <https://storage.googleapis.com/bac-gcs-production/04b66c0d5f3d25d4a78f7085a170f9542ee302b0fbfebfc7abd8f542afae9b9b4202c7e035c2fab6a14efc1869d7dc539e7578bef3a5f0cb21f7e3f6c0a192dc.jsonnet>
            can_interrupt: true
            method: POST
            response:
              ignore: false
              parse: false
            url: <https://webhook-private.apibara.com/kratos/after-registration>
          hook: web_hook
Does kratos set the 'content-type: application/json' when making a call? I noticed my server returns an error if that's not the case
I tried to add a hook like in this guide,pointing at my local machine (tunneled with ngrok). I can see that no call is made https://www.ory.sh/docs/actions/integrations/segment
r
Do you have any other hooks configured? Like under the
password
or
oidc
sections?
You might have the
session
hook configured for
password
and/or
oidc
. The hooks in the
registration.after.hooks
section are executed only if there are no more specific hooks defined in the
password
or
oidc
sections.
r
It worked! I had multiple hooks specified, changing that and massaging the config some more made it work
๐Ÿ‘ 1