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.
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- [Fix] Error 1020 Cloudflare: Access was denied
- What is an Authorization Code Grant? OAuth 2.0
- Fix: psql: error: connection to server at localhost (::1) port 5432 failed: FATAL: database does not exist
- 100+ SEO Tips to improve your website search ranking
- How to submit website to dmoz directory
- How to check the version of NodeJS installed
- How to enter Rockstar Activation Code?
- Background task activation is spurious error - Windows 10, Office 2016, Office 365
- Angular CLI ng Error: You need to specify a command before moving on. Use --help to view the available commands
- cURL HTTP GET request command examples
- Fix - JioCinema Something Went Wrong Please Try Again Error 8001 while streaming IPL Cricket Live
- How to remove password from pdf file
- How to identify the version of IntelliJ
- Command: How to scp a file to remote server location?
- How to add Widgets to MacBook Desktop
- Setting up RSS feeds notifications within Outlook
- Fix - Website Connection timed out Error Code 522 (Cloudflare)
- How to fix: Please check your network connection (Retry)
- Fix: Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Accept Only 0-9 Numbers RegEx Example
- How to create a New Project in Visual Studio Code (VS Code)
- Top 10 emerging breakthrough trending technologies
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015
- [Error] zsh: command not found: mvn
- How to Scan iPhone for Virus? Is Antivirus it really required?
- How to check your installed version of Git - Git
- Notepad++ select all above or below lines - NotepadPlusPlus
- [Mac] How to Mute People in a Microsoft Teams Meeting - Teams
- Android Studio Button onClickListener Example - Android-Studio
- How to come out of Full Screen Mode Roblox on Mac - MacOS
- How to change background color in Notepad++ - NotepadPlusPlus
- Mac - Open Finder App using Terminal Current Location - MacOS
- How to change SharePoint Online site collection or subsite URL address - SharePoint