Hello. I enabled sync login webhooks at Kratos, bu...
# general
l
Hello. I enabled sync login webhooks at Kratos, but it fails with
context canceled
and 499 error. Never responds and never sends the webhook. Is it a bug in Kratos? I use
v0.13.0
m
Hello @lemon-apartment-14887 Please check if the session webhook is active: https://www.ory.sh/docs/actions/session
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.
l
Copy code
login:
      ui_url: <https://example.com/login>
      after:
        hooks:
          - hook: web_hook
            config:
              method: POST
              url: <http://mfa-manager/totp/watch>
              body: <base64://ZnVuY3Rpb24oY3R4KSB7IGN0eDogY3R4IH0K>
              response:
                ignore: true
          - hook: require_verified_address
Thank you for your reply. There is no session webhook, and the webhook is triggered first. Right now, I think that Kratos does not have enough CPU, and these bugs happen because of it. I will be increasing the CPU of our pods and check if it helps.
👍 1