502 Bad Gateway error from nginx/1.22.1 when I refresh


I am using Angular and Django, and I’m encountering an issue with Keycloak for authentication. The problem is that I can log in normally, but when I refresh the page, I get a 502 Bad Gateway error from nginx/1.22.1.

Have you tried to check the nginx logs? What do those say?

yes, but I don’t find anything