502 Error when redirecting to login page

Just some additional info: The 502 response is returned by our gateway since the call to Auth0 is not returning within 30s. Increasing the timeout to 60s, I can still see this happening. This happens for a variety of calls:

  • POST /oauth/token
  • POST /login/callback
  • POST /usernamepassword/login
  • GET /login?..
  • GET /authorize?..
  • GET /v2/logout?