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.
You can download this article in various formats for your convenience. Choose from the options below:
Facing issues? Have Questions? Post them here! I am happy to answer!
- Different types of Queue options in RabbitMQ (Default - Classic - Quorum - Stream)
- Format Code in Visual Studio - VS Code [Mac/Windows/Linux]
- [fix] Editor could not be opened unexpected error: File is a directory (VS Code)
- [IRCTC] Indian railways official eRail API 1.1 for developers to get train info
- Shortcut: Cut (or Delete) current line in Visual Studio Code (VSCode)
- How to know the version of OpenSSL
- How to find lost AirPods?
- How to get an embed code from Vimeo?
- How to find someone on Instagram
- [Error] zsh: command not found: mvn
- Display (Show) bookmarks bar Safari
- How to add password to pdf file for opening, editing, printing, copying
- Fix: Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Steps to Delete or Deactivate Instagram Account
- Create Duplicate Line Visual Studio Code (above or below) Example
- How to get more information about npm using brew command
- How to Fix Spelling Errors on Microsoft Word for Mac
- How to get weather details in Command Prompt, macOS or Linux Terminal
- Add X days from today in Command Line
- How to change font, apply bold or italic styles, font size in Windows Notepad
- Angular CLI ng Error: You need to specify a command before moving on. Use --help to view the available commands
- Fix - Website Connection timed out Error Code 522 (Cloudflare)
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- Change Font Size in Visual Studio Code
- How to display only IP address using Terminal command
- How to check if variable is a number in JavaScript (NaN, typeof, regex) - JavaScript
- ls command sort by file size [Linix/UNIX/macOS/bash] - Linux
- Android Activity Main xml stuck loading - Android-Studio
- 'Edit Document' Requires a Windows Sharepoint Services-compatible application and Microsoft Internet Explorer 6.0 or higher - SharePoint
- Removing a key from Python Dict - Python
- How to know the Version of Notepad App on Windows 11 - Windows-11
- Mac Terminal Find Command History - MacOS
- Update Powershell Using Command Line - Powershell