Lỗi web server is returning an unknown error năm 2024
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. Show On This Page : Causes of Error 520You can receive “Error 520: Web server is returning an unknown error” when the origin server returns an empty, unknown, or unexpected response to Cloudflare. What are the reasons for Error 520 Cloudflare? There are some possible reasons:
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. 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:
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.
Solution 2. Restart Web ServerIf 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 PluginsSometimes, 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. Solution 4. Check Headers and CookiesThe 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.
Solution 5. Configure DNS ProperlyDNS 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. Bottom LineMiniTool 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 AuthorPosition: 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. |