Cloudflare free with nginx random 522 error with broken images


Starting this week, I noticed my website is getting 522 errors that make the img not load correctly and break the presentation of the website.

I have contacted the VPS provider, and they have nothing updated on their side.

I already try to increase the keepalive time on my nginx server. But 522 still happens randomly, My server doesn’t log any errors in the log, and it’s not busy at all while I monitor it.

I now turn off the cloudflare (by pass), and the errors seem gone.

Anyone please kindly give me some idea, what should I do.


Sorry to hear you are having issues with 522’s. Below is a guide that details the common items to check to remedy these errors.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.