
At times, you might see the above message - "Connection timed out - Error 522" when you try to access a website using your computer or mobile phone's web browser like Safari, Chrome, Firefox, or others.
This error is related to the website server and there is nothing wrong on your side. As you may see, a green tick saying that your browser is working fine and so is the Cloudflare server (CDN) located near your city, but there is an issue with the Host.
Why Error 522?
We get the Cloudfare Error 522, when the initial connection between Cloudflare's network and the origin web server (i.e. Website server) timed out thus the page you are trying to load is not displayed.
What should I do as an end user?
You can try to refresh the page and try again in some time. If you are a part of the website organization, you can reach out to their IT Support team saying the page/app is unreachable with "Cloudflare Error Code 522"
What should I do as a Website Owner?
- Cloudflare sends a SYN message to your web (origin) server and does not get a SYN+ACK within 15 seconds
- The connection is established but the web server (origin) does not acknowledge (ACK) Cloudflare’s resource request within 90 seconds.
As we discussed earlier, Error 522 is a connection timeout error that occurs when Cloudflare times out when trying to connect to your web server.
The connection time out can occur when:
How to Fix: Error 522
The most common reason for this error could be:
1) That your server is overloaded and unhealthy to handle any more requests at the moment.
2) The web server is down and offline.
3) The IP of the Webserver has changed, and there is a mismatch between what is configured with Cloudflare.
4) It could be that the Cloudflare IPs are either rate-limited or have been blocked in .htaccess, iptables, or the server firewalls, make sure to whitelist them.
5) Make sure that the keepalives are not disabled at the web (origin ) server.
6) Check that there are no packets dropped at your web (origin) server.
If nothing works, you will need to take a look at your web server - IIS, Apache, Nginx, or others which can be hosted with GoDaddy, HostGator, WordPress, or cloud services like AWS, Azure, or Google Cloud. If you are unable to see any issues, you need to reach out to them.
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!