[Solved] Error 520: Web Server Is Returning an Unknown Error - MiniTool Partition Wizard (2024)

  • Home
  • Partition Magic
  • [Solved] Error 520: Web Server Is Returning an Unknown Error

By Charlotte | Follow | Last Updated

When using Cloudflare with your (staging) website, do you receive "Error 520: web server returns an unknown error"? If you do, you come to the right place. In this post, MiniTool Partition Wizard provides the reasons and solutions for this error.

Causes of Error 520

You can receive “Error 520: Web server is returning an unknown error” when the origin server returns an empty, unknown, or unexpected response to Cloudflare.

[Solved] Error 520: Web Server Is Returning an Unknown Error - MiniTool Partition Wizard (1)

What are the reasons for Error 520 Cloudflare? There are some possible reasons:

  • Origin web server application crashes.
  • Cloudflare IPs are not allowed at your origin.
  • The origin web server TCP idle timeouts are shorter than 300 seconds.
  • Headers that exceed Cloudflare’s header size limit (16kb).
  • Empty response from the origin web server that lacks an HTTP status code or response body.

Now you know what caused the 520 error. Here are some solutions below. You can choose a solution that is in accordance with your situation.

How to Solve the HTTP Error 431 in Google Chrome?Some users encounter the HTTP error 431 while trying to access certain websites in Google Chrome. To fix the error, some methods are listed in this post.Read More

Solution 1. Troubleshooting Error 520

“Error 520: Web server is returning an unknown error” can be caused by various reasons. To fix it, you can first troubleshoot. Here’s the full guide for you to troubleshoot Error 520 Cloudflare.

Step 1. Disable Cloudflare. Here are the steps:

  1. Logging into Cloudflare. Then find your site and click it.
  2. Click the DNS tab and then click the orange cloud under the Proxy Status section in the table. Disable Cloudflare and the disabled cloud icon will be displayed in gray.
  3. Click on the overview option on the top and scroll down and select the Disable link to disable Cloudflare.
  4. Next, give your confirmation to pause Cloudflare.

Step 2. After disabling Cloudflare, you can troubleshoot error 520 by checking your server’s error logs. The way to check the server’s error logs can vary between hosts. If your hosting provider uses cPanel, you can follow the steps below.

  1. Log into cPanel and in the dashboard, go to the Metricssection.
  2. Then, click the Errorsbutton.
  3. After that, you can see the error logs in reverse order, where the last 300 errors will be shown.

Solution 2. Restart Web Server

If there are any errors on your web server, you can also encounter HTTP 520 easily. To fix this, you can try restarting your web server.

Solution 3. Remove Plugins

Sometimes, using plugin overdosing can also cause HTTP 520. Because plugins can generate a large header size that Cloudflare may not be able to handle. At the same time, some plugins can store a lot of data in cookies. To avoid this situation, you need to delete some plugins that your website doesn’t need.

How to Fix HTTP Error 522 Connection Time Out?This post tells you why the HTTP error 522 connection timed out happens and how to solve this problem.Read More

Solution 4. Check Headers and Cookies

The overall limit of Cloudflare’s request headers is 32 KB, and each individual header size limit is 16 KB. If the header exceeds the limit, you may encounter Error 520. To check your header’s size, you can access your server’s HAR (HTTP Archive) to review the site’s headers and cookies.

Here’s how to do it:

Tips:

HAR files contain sensitive information. So, you’d better use a text editor to delete your password, cookies, and other personal data before you share it with others.

  1. Right-click the website to appear with Error 520 and then select Inspect from the menu to open the developer tools.
  2. Click on the Networktab.
  3. If you see a gray round button, you need to click it.
  4. Next, check the Preservebox.
  5. After that, refresh the page and open the Network tab again.
  6. Right-click anywhere on the developer tools window, and select Save all as HAR with Content.
  7. Then use an online tool to check for the file, such as Google’s HAR Analyzer.
  8. If you find excessive use of cookies or cookies that are too large, please consider using a cookie-free domain.

Solution 5. Configure DNS Properly

DNS records play an integral role in the effective functioning of a website, providing information such as what IP corresponds to a certain domain name.

If the DNS configuration on your Cloudflare is not configured properly, you can encounter the 520 error too. In this case, you’d better check the DNS configuration in the domain and make sure the record point to the right IP address.

If all the solutions above can’t help you to fix the “Error 520: Web server is returning an unknown error”, you need to contact Cloudflare support to get further assistance.

Four Best Ways to Resolve the Conflict of 409 Status Code409 status code is an error code meaning that files are conflicting, but how can we fix this problem? This post recommends 4 best ways to resolve the conflict.Read More

Bottom Line

MiniTool Partition Wizard is an all-in-one partition manager and can be used for data recovery and disk diagnosis. If you are interested in it and want to know more about it, you can visit MiniTool Partition Wizard’s official website by clicking the hyperlink.

About The Author

Charlotte Follow Us

Position: Columnist

Charlotte is a columnist who loves to help others solve errors in computer use. She is good at data recovery and disk & partition management, which includes copying partitions, formatting partitions, etc. Her articles are simple and easy to understand, so even people who know little about computers can understand. In her spare time, she likes reading books, listening to music, playing badminton, etc.

[Solved] Error 520: Web Server Is Returning an Unknown Error - MiniTool Partition Wizard (2024)

FAQs

How do I fix error code 520? ›

Resolving common reasons for Error 520
  1. Restart PHP/Apache/Nginx. ...
  2. Whitelist Cloudflare IPs. ...
  3. Adjust TCP idle timeouts. ...
  4. Reduce header size. ...
  5. Empty response header. ...
  6. Temporarily disable Cloudflare. ...
  7. Activate development mode. ...
  8. Checking your server's error logs.
Feb 7, 2024

What does web server is returning an unknown error mean? ›

However, as visitors try to access its content, they may come across the message that reads “Error 520: Web Server Is Returning an Unknown Error.” It's a catch-all response issued by Cloudflare to indicate your website did something unexpected, resulting in an empty response.

How do I fix a Cloudflare error? ›

Contact your site administrator or hosting provider to eliminate these common causes:
  1. Ensure your origin web server is responsive.
  2. Review origin web server error logs to identify web server application crashes or outages.
  3. Confirm Cloudflare IP addresses Open external link are not blocked or rate limited.
Jun 28, 2024

What is Cloudflare 520 status? ›

A 520 error occurs when the connection started on the origin web server, but that the request was not completed. The most common reason why this would occur is that either a program, cron job, or resource is taking up more resources than it should causing the server not to be able to respond to all requests properly.

How do I fix a web error? ›

When your website is not loading, here are the 10 most common troubleshooting steps to solve it:
  1. Check if the website is down. ...
  2. Check the internet connection. ...
  3. Use a different device. ...
  4. Analyze the error message. ...
  5. Switch to another web browser. ...
  6. Verify the DNS records. ...
  7. Check the error logs. ...
  8. Use developer tools.
Mar 29, 2024

What is the header size limit for Cloudflare? ›

URLs have a limit of 16 KB. Request headers observe a total limit of 32 KB, but each header is limited to 16 KB. Cloudflare has network-wide limits on the request body size. This limit is tied to your Cloudflare account's plan, which is separate from your Workers plan.

What causes server response error? ›

Some of the common problems that can cause the error are: Corrupted browser cache. Temporary connectivity issues. Syntax errors or incorrect rules in the website's .

What happened the web server is not returning a connection? ›

The server is either offline or there is an issue with Apache or Nginx. Blocked/blacklisted Cloudflare IP addresses. All connection requests come via Cloudflare's IPs. The origin server might have a server-side security configuration that blocks an IP address if it sends too many requests.

What does it mean when a website says server error? ›

A server error simply means something has gone wrong with the communication between your computer and the server hosting the website you are trying to access. These errors usually begin with 4xx or 5xx, which correspond to client errors or server issues. Common Server Errors Include: 400 Bad Request.

Why am I getting blocked by Cloudflare? ›

If they have enabled the blocking of recently registered, recently gone-active or parked domains, then that is the reason for the block. They will need to remove that rule, or allowlist your website themselves. Cloudflare doesn't block anyone, only Cloudflare customers block.

How do I get past Cloudflare error? ›

Chrome not allowing cloudflare verification
  1. Clear your browser cookies and cache.
  2. Ensure cookies are enabled in your browser settings.
  3. Disable Ad-blocker or any privacy-related extensions temporarily. ...
  4. Check if JavaScript is enabled.
  5. Try accessing the website in an incognito window.
Jul 28, 2023

Why do I keep getting Cloudflare errors? ›

Background While visiting a site protected by Cloudflare, you may see an error indicating you do not have access to a given site and you are presented the error: The site owner may have set restrictions that prevent you from accessing the site. Contact the site owner for access or try loading the page again.

How to resolve 520 error? ›

Error 520 is a server-side error caused by a connection issue between the web server and the origin server. Try refreshing the page, clearing your browser cache and cookies, contacting your hosting provider or website administrator, and checking your server's logs for any issues to prevent this error.

How do I fix a web server that is returning an unknown error? ›

This problem occurs when your site lacks an HTTP status code or response body. To resolve it, make sure your DNS settings are set correctly for your site's domain. The steps involved to check your settings depends on your DNS host. If your hosting plan has DNS bundled with it, then check with your hosting provider.

What does 520 mean in code? ›

Well, 520 is hom*ophonic to “I love you” in Chinese! In fact, the 20th of May (520) is pronounced (wǔ èr líng)which sound very similar to 我爱你(wǒ ài nǐ)I love you, that is why the 20th (and 21st) have been labeled as the Internet Valentine's Day(网络情人节). Ok, we get the part about Valentine's Day, but why “internet”?

How do I get rid of Netflix error? ›

Follow the troubleshooting steps below to resolve the issue.
  1. Sign in on another device. ...
  2. Clear the Netflix cookie. ...
  3. Restart your browser. ...
  4. Use a different browser or device. ...
  5. Shut down your computer. ...
  6. Restart your home network.

Why does Netflix keep giving an error code? ›

It usually means that there's a network connectivity issue that is preventing your device from reaching Netflix.

What is error 520 on HP BIOS? ›

Sure Start RTID (520)

An HP Sure Start Runtime Intrusion detection event was detected. The most common cause of this error is a security issue, such as a hacking attempt.

What is error code 520 on Mac? ›

Accessing a URL using Safari or make.com results in a 520 error from Cloudflare, accessing the same URL from Chrome or cURL produces the correct result. The reason for the 520 is that the request crashes the apache server on the origin server with a Segmentation Fault.

Top Articles
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6097

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.