Error 502 Bad gateway in online server

502

#1

error reproduction

  1. the server increases the load time in some response and cloudflare gives error.
  2. the error is saved and always shows a screen like this.
  3. restart server etc and follow the error, pause cloudflare and load the normal page.
  4. if I delete all the browser data and the page is already normal, but visitors do not know they should do this, and the error is very frequent leaving the website with a 502 error for many visitors and crawlers like googlebot

#2

Chances are your server has issues with sessions or cookies for returning visitors. Check the actual application’s error logs, or PHP error logs.