The Error 522: Connection timed out message is an
HTTP status code
. A content delivery network (
CDN
) service, like Cloudflare, speeds up the network connection between a browser user and a website’s origin server. However, sometimes the server fails to respond within a specified time.
This issue also means that the
Transmission Control Protocol
(TCP) handshake between the web server and Cloudflare has failed. The TCP handshake is essential to establish a connection whenever this CDN service receives a user request.
So, why does the origin server not respond in time? Here are some of the most common reasons behind connection timeouts:
With each step to fix the Error 522: Connection timed out issue, we will also share how to check the specific cause behind your error.
Important!
First, check if the website is down for everyone and ensure that
Cloudflare system status
is working properly before proceeding with the steps. Use a tool like
uptrends
to do so.
1. Check if the Web Server Is Working
A common cause behind the Cloudflare error 522 is that a web server cannot handle HTTP requests as it is already overwhelmed. This issue often happens with shared hosting servers. To troubleshoot this error message, check if the origin web server is active and accepting HTTP requests.
There are different ways to check your site’s origin web server, including using the
Packet Internet Groper (PING) command for Linux
or Traceroute for Windows. Both Linux and Windows use a
PING command
to check the connectivity status of your website’s server.
Another reason your origin server is not working might be the high load of requests to your website. So, check your
order usage
to avoid hitting any limits. Each hosting provider will have its own way of accessing this information.
For Hostinger users, head to
hPanel → Hosting → Resource Usage
and take a look at the following data:
What Are the Common Causes of Error 522?
Error 522 usually occurs due to a connection timeout between the web server and the Cloudflare proxy. The common causes include server downtime, issues with the web server, firewall or security plugin misconfiguration, heavy traffic, and problems with the hosting provider’s network infrastructure.
How Do I Know if Error 522 Has Been Fixed?
Check if the website is loading properly and if you are able to access it without any issues to confirm that error 522 has been fixed. Additionally, you can use online tools or services that can perform uptime monitoring to ensure it is up and running without any errors.
Astari is a digital marketing expert, with a focus on SEO and WordPress. She loves to share her wealth of knowledge through her writing, and enjoys surfing the internet for new information when she's not out in the waves or hiking a mountain. Her mission is to learn something new every day, and she firmly believes that there is no such thing as too much knowledge.