Glossary of web design terms you should know

Create your website in 60 seconds with AI. Start for free!

Generate a website
Back to glossary

522 error

A 522 error happens when a website’s server doesn’t respond in time to a request made by Cloudflare, a popular content delivery network (CDN) and security provider. In simpler terms, Cloudflare tried to reach your site’s origin server, but the connection timed out. The result? Your site visitors see a “522 Connection Timed Out” message instead of your content. It's a frustrating roadblock for everyone, especially when you want your site to be fast and always available.

Why does a 522 error happen?

Think of it this way: a 522 error usually points to a problem with your website's "home base" – the server. Here are a few common scenarios. 

  • Overloaded or offline. Like a shop getting too many customers at once, your server might be struggling to keep up with traffic or might even be temporarily down.
  • Blocking Cloudflare. Sometimes, security settings on your server, like a firewall, might mistakenly block Cloudflare from connecting.
  • Slow to respond. If your server is slow to respond to Cloudflare's requests, Cloudflare will eventually give up waiting and show the error.

It's important to know that a 522 error usually isn't about your website's design or how it's built, but rather the connection between your hosting and Cloudflare.

Common causes of a 522 error

Here are some typical reasons you might encounter this issue.

  • Server performance issues. Your website's server might be working too hard or just not performing well.
  • Network routing issues. There might be connectivity problems between Cloudflare and where your website lives (your web host).
  • Firewall misconfigurations. Your server's security might be incorrectly set up to block Cloudflare's access.
  • Server downtime. The server hosting your website could be down for maintenance or experiencing an outage.
  • Incorrect DNS settings. Cloudflare might be trying to find your website at the wrong digital address (IP address).

How to fix a 522 error

If you're seeing this error for your own website, here's a practical troubleshooting guide.

  1. Check if your origin server is online
    Log in to your hosting account and make sure your server is running smoothly and not under a heavy load.
  2. Review your firewall settings
    Ensure your server's firewall isn't accidentally blocking Cloudflare's "visitors" (their IP addresses).
  3. Check DNS configuration
    Double-check that the DNS records in your Cloudflare settings are pointing to the correct IP address of your server.
  4. Contact your hosting provider
    If you're unsure what's going on, your hosting provider can look at their server logs and see if Cloudflare's requests are even reaching them.
  5. Whitelist Cloudflare’s IPs
    Review your security tools and hosting configurations to ensure Cloudflare isn't being unintentionally blocked.

FAQs about the 522 error

What does “522 Connection Timed Out” mean?

It means Cloudflare successfully found your server, but the server didn't send back a response quickly enough, so Cloudflare had to stop waiting.

Is the 522 error caused by Cloudflare or my web host?

Usually, the issue lies with your web hosting. Cloudflare is just the messenger, and a 522 typically means your server was slow or unreachable when Cloudflare tried to get the content.

How long does a 522 error last?

It depends on the cause. If it's just a temporary server overload, it might resolve itself quickly. But if it's a configuration problem, it will stick around until someone fixes it.

Will my site visitors see the 522 error?

Yes, anyone trying to access your site while the error is happening will likely see a Cloudflare error page (unless you've created your own custom error page).

Build a fast, secure website

B12 helps you build a fast, secure website without needing to manage hosting or servers. Our built-in tools and expert support reduce the chances of issues like 522 errors slowing you down. Launch your website today and keep it running smoothly!

Draft your site in 60 seconds

Get an AI website made specifically for you that's free to launch.

Start for free ✨

No credit card required

Draft your website in 60 seconds

In just a few clicks, build a website with all the features you need to thrive online

Get started for free

Product

Customers

Helpful information and tools

© 2025 B12. All rights reserved.
PrivacyTerms of Service