What to do when you are getting Error 520: Web server is returning an unknown error

The Error 520 occurs when someone is browsing your website and it gets unavailable for them. The Error can occur due to multiple reasons. Today we’ll discuss the error and how to troubleshoot it.

What does it show to you?

What happened?

There is an unknown connection issue between Cloudflare and the origin web server. As a result, the web page can not be displayed. There is an issue between Cloudflare’s cache and your origin web server.

What Can I do?

There is an issue between Cloudflare cache and your origin web server. Cloudflare monitors for these errors and automatically investigates the cause. To help support the investigation, you can pull the corresponding error log from your web server and submit it our support team. Please include the Ray ID {which is at the bottom of this error page). Additional troubleshooting resources.

It looks like this:

error 520

error 520

Now, what next you’ll have to do when you are getting the exact same error.

There are a few steps which you need to follow to get over the error, it’s not that difficult, trust me.

Step 1. Follow the link which has been given on bottom right corner by them to troubleshoot the problem. Link text is Additional troubleshooting resources. Just click on it and you will be transferred to the official website of Cloudflare.

Here they have explained the Error 520 in a very well mannered and the common cause of the error too. But if you are not tech savvy then the tips may go over your head. This is why we are here, don’t worry, all you need do is scroll down and here our next step starts.

Step 2. On the bottom of the page, you will see a Submit a request button which transfers you to the login page, now login to the Cloudflare account. If you don’t have one you may sign up form by clicking here.

submit a request

Step 3. Now when you are done with the logging in then the link will redirect you to the support page. Here you will have to on the third button which is Get more Help. After clicking on the button a pop up will come up, just fill the details out. Select the Domain on which the problem is occurring and give them a summary of your problem. And click Next.

Step 4. Now they will ask you To help Cloudflare detect common issues and try to resolve your problem quickly, we’ll run some diagnostics on your domain. Please wait.

Our diagnostics completed with no recommendations. click Next to file a Cloudflare Support ticket.

Here you will get another form where you will have to fill up all the details according to your requirements.

In the description column, you will have to Provide example URL(s) and Ray ID as well as a copy of the output from http:///cdn-cgi/trace


Step 5. After a brief description, you will have to attach

  • Provide two HAR files: one detailing your request with Cloudflare enabled on your website, and the other with Cloudflare temporarily disabled – How do I temporarily deactivate Cloudflare?. These will be helpful in comparing server responses.

How to Generate a HAR File? Click here to learn.

After that send all the details to them and they will let you know the exact problem and what will be the permanent solution for this Error.