Hey everyone, I'm facing a weird issue. I'm using ...
# talk-kratos
s
Hey everyone, I'm facing a weird issue. I'm using Ory/Kratos behind nginx proxy in kubernetes. I deployed everything using official helm chart with my custom self service application. Everything seems to work except when I register new user after few seconds the API returns
502 Bad Gateway
this is returned from reverse proxy (nginx ingress) because
upstream closed the connection abruptly
But user is registered (I received email also to verify user). I'm also able to login with that username/password. Here are the log entries from kratos pod https://ory-community.slack.com/files/T010GP8ELBT/F04MJ5UH1KM Possibaly this could be due to this post registration hook
A ExecutePostRegistrationPostPersistHook hook aborted early
but I don't see any error logs in
kratos-courier
and I do receive email after the registration. I've tried enabling debug/trace logs but couldn't find anything specific.
@magnificent-energy-493 can you please take a look at this issue?
m
Hey @steep-traffic-33121 This is really hard to debug without having access to your deployment. This also seems like a problem with Kubernetes or nginx rather than Ory Kratos. What exactly is the problem apart form the error from NGINX? It seems you can sign up and everything works no?
s
Only problem is i get 502 bad gateway error on register api so user doesn’t know if it registered or not. Although it is registering
I can try to debug nginx more.
m
So the user sees an error after signing up?
s
When user clicks on signup button that api returns error 502 and user sees the error.
Is there any way i can debug this error?
ExecutePostRegistrationPostPersistHook hook aborted early