Hello, I am getting a weird error message if I try...
# talk-kratos
a
Hello, I am getting a weird error message if I try to add a web-hook configuration to the after registration password method:
Copy code
The configuration contains values or keys which are invalid:
selfservice.flows.registration.after.password.hooks.0: map[config:map[body:file:///config/btcpay.jsonnet can_interrupt:false method:POST response:map[ignore:true] url:<http://echo-echo-server/kratos>] hook:web_hook]
                                                       ^-- validation failed

The configuration contains values or keys which are invalid:
selfservice.flows.registration.after.password.hooks.0.hook: web_hook
                                                            ^-- value must be "session"
It says the value must be "session" but it doesn't make any sense - I supply the session right after. Here is my config (it is using the helm chart):
Copy code
kratos:
  config:
    selfservice:
      flows:
        registration:
          lifespan: 10m
          ui_url: <https://somui.com/register>
          after:
            password:
              default_browser_return_url: <https://somui.com/register> 
              hooks:
                - hook: web_hook
                  config:
                    url: <http://echo-echo-server/kratos>
                    method: POST
                    body: file:///config/body.jsonnet
                    can_interrupt: false
                    response:
                      ignore: true
                - hook: session
Edit: I fixed it by removing can_interrupt - then it works weird error message though