Community Tip - Fixing Error 520: Web server is returning an unknown error

Error
Try the suggestions in this Community Tip to help you fix “Error 520: Web server is returning an unknown error”.

Background
Error 520 is essentially a catch-all response when something unexpected happens or when the origin server incorrectly interprets or does not tolerate a request due to a protocol violation or an empty response. 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. When this happens, you’ll see “Error 520: Web server is returning an unknown error”.

Banner in tip catalog

Quick Fix Ideas

  1. Your web server or networking equipment, any http aware device like Firewall, Load Balancer, et al, reset the TCP connection after it was established. Sometimes when a web server crashes it will reset the connection. Check your web server error logs with your hosting provider for the time that the error occurred to see any error messages.

  2. Your web server returned an invalid response that exceeded our limits. Often this can happen if your web server is returning too many/too large headers. This is often caused by runaway scripts that return too many cookies, for example. The Code Igniter PHP framework has some known bugs around this, too.

  3. While you’re having a conversation with your hosting provider, make sure they include Cloudflare IPs on their allowed list.

  4. While the 520 error can be triggered by unique and seemingly strange edge-case scenarios, they are generally caused by: Connection resets (following a successful TCP handshake), Headers exceed the Cloudflare header size limit (over 8kb), An empty response from origin, An invalid HTTP response, Missing response headers from an HTTP response, or the Presence of multiple Content-Length headers.

  5. Note that if Always Online is enabled, this error will trigger an Always Online page to be served. Disable Always Online and check to see if the error goes away or changes. If so, consult the appropriate 521 or 522 #CommunityTip.

  6. If this error is still happening, post on this site and provide example URL(s) and Ray ID and output from a traceroute from any impacted user, copy the output of example.com/cdn-cgi/trace - replace example.com with the affect domain. Also prepare two HAR file(s): one detailing your request with Cloudflare enabled on your website and the other with Cloudflare temporarily disabled - see How do I temporarily deactivate Cloudflare? If Cloudflare Support needs to assist, these HAR files will be helpful in comparing server responses.

Lite Reading
https://support.cloudflare.com/hc/en-us/articles/115003011431#520error

Background Resources
Help Center
YouTube

Research The Issue
Google

If You Need More Help
This community of other Cloudflare users may be able to assist you, login to Cloudflare and post your question to the Community. When you post on the Community make sure to include as much of this information as possible: the specific error message you are seeing, the URLs this is happening on, screen shot of the error, and the steps to reproduce the error. Please indicate what troubleshooting steps you’ve tried in order to help us help you.

This is a Cloudflare Community Tip, to review other tips click here.

Çevirme…traduzir…翻译…traducir…Traduire…Übersetzen…:greyg: Translate this Tip

FXWSCT 101819

8 Likes
I suddenly got a 520 error
520 error when saving articles in Wordpress
Wordpress Errore 520
I don't accese to my site
I Bought SSL Dedicated but
520 error started today with cloudflare
Error 520 Web server is returning an unknown error [Getting this error On and OFF]
Getting Error 520 and 521
Error 520 Web server unknown error
Error 520 for my website
WordPress plugin updates getting 524, origin server response quick 200
520 - again and again
520 error after going to cloudflare
Getting the 520 error frequently
Getting 520 error status code
Cloudflare error 520 when loading page
Error 520 All The Time!
Facing issue 520 Error while loading my site
Frequent 520 responses
I am getting this error kindly help!
Cloudflare and Ezoic issue, cant use Admin smoothly
I'm facing error 520
Problem website with code error 520
Please help with error 520
Error 520 (classic)
Error 520: Web server is returning an unknown error FastComet
Wp-config.php error 520
Wp-config.php error 520
520 Error with WordPress Divi Builder
WordPress plugins
Cloudflare is unstable from few days and its a disaster with 520 error from cloudflare
ERROR 520 website return error
Loading site error, is it Cloudflare or my free hosting error?
Error 520 on wp-admin pages
Numerous 520 return on dnn sites free account
Community Tip - All Published Tips
Only one page returning 520
520 errors on Wordpress
Issue with SSL for the sub domain
Godaddy / Cloudflare 520 error (recent change)
Error 520 - What's the solution?
Cloudflare WP plugin
I removed my site from cloudflare but my site always Error 520 what should I do?
My website has error 520
How to Report 520 Errors to Support
Erreur 520
Erreur 520 inconnue
The site is not working after using the nameservers of cloudflare
The site is not working after using the nameservers of cloudflare
Cloudflare causing 520 errors on multiple websites
All websites in The Netherlands getting 520 & 522 error
HTTP 520 Errors
Cloudflare Access w/OKTA & Error 520's
When i tried to upload that file, i see this error:
HTTP 520 Errors
Error 520 Ray ID: 4fb3444db842d61c
Ukraine, Belarus and Russia Unable to access my site
Access wordpress admin returning Error 520
New to cloudflare. Please help on what to do to fix this issue
Error 520 Ray ID: 6bb5ab920d8a1ec8 • 2021-12-10 10:08:08 UTC Web server is returning an unknown error
Intermittent error 520 on site for latst 15-20 days
520 & Database Errors
Can't connect to this site, I need to pay
Can't connect to site
Error 520 with Cloudflare
Can't connect to site
Can't connect to site
Web server is returning an unknown error 520
Same mistake yesterday 520 with Cloudflare active!
Geting Error 520 inside wordpress dashboard after conecting to Ezoic
Geting Error 520 inside wordpress dashboard after conecting to Ezoic
How Do I Fix Error 520
Error 520 when visiting www.u-pull-it.com
Many Error 520
CommunityTip - Security FAQ Read Me First
Error submitting support request
Has NZ fallen off Cloudflare's map?
Error 520 on editing post or pages
Community Tip - Helpful Links, on Display
Getting Error 520 whenever I try to update a Wordpress post
Cannot access log-in page/multiple IP addresses
Sling.com & Cloudflare Error 520 Cannot Login to Members Area. Sling support has no idea (Help)
My server is down under 520
Error 525 SSL failed
Error 520 a day after adding SSL Certificate
520 unexpected error
Why is pdf not displayed and get erorr 520 when use cloudflare?
On the shared free SSL, I am getting 520 error on my website
520 unexpected error
Site not load
My website often has 520 errors, how to solve it
Nameservers same for two different sites
520 Error when going to wp-admin
Changing my website theme
Please solve my error 520
Site keeps going down roughly 1-5 minutes at a time
Cloudfare and Facebook Ads
Error 520 unknow connection issue
Error 520 from time to time
Intermittent error 520 on site for latst 15-20 days
ERROR 520 just keeps showing up
Error 520 server load
Godaddy / Cloudflare 520 error (recent change)
Getting randomly 520 error
Random 520 Errors since few days
520 errors on Wordpress
520 error 2
Please help with error 520
Problem website with code error 520
Random 520 errors started a few weeks ago
520 Errors for Telstra Customers in Australia on SIN COLO
Facing issue 520 Error while loading my site
Error 520 en la pagina web
A 520 error
Display error 520 randomly
Cloudflare Error 520 for GoDaddy Managed WordPress site
520 error randomly occurs
520 Errors started happening a few days ago
A solution to the 520 Error problem!
My site keeps giving 520 error
520 and 504 Errors
Website is Down - Error 520
Website showing error
520 errors on some sites
Error 520 Ray ID: 566b9f73891ddd42 • 2020-02-17 23:44:19 UTC Web server is returning an unknown error
Why can't I connect? Only on my pc
Purging Cash - 520 Error
There is an unknown connection issue between Cloudflare and the origin web server
Cloudflare 504 520 errors on XML Sitemap Generator
Error 520 when updating wordpress plugins
Random 520/525 error codes started today
Frequent 520 errors after connecting site to cloud flare
Server 520 Error
Site doesn't work when DNS pointed to CF
Site Down. Server support says its Cloudflare
Website giving error 520
CommunityTip - Behebung von Fehler 525: „SSL handshake failed“
Could not solve Error 520. Need help
Error 520/525/502
コミュニティのヒント - エラー520:Webサーバーが不明なエラーを返しています
Sometimes a CF 520 error
Sometimes a CF 520 error
Cloudflare blocking WEBXR on Firefox Reality
I'm facing error 520
CommunityTip - Preguntas frecuentes sobre seguridad
Headers cause HTTP 520 Error
Intermittent Error 520, host says nothing in logs, Always Online off
CommunityTip - Solucionar el error 520: El servidor web devuelve un error desconocido
Why my site keep making 520 error
Why my site keep making 520 error
Sometimes a CF 520 error
Help error 525 y 520
Error 520: Is Cloudflare responsible for this?
520 errors that appear at random
Why is pdf not displayed and get erorr 520 when use cloudflare?
Error 520 - Please help
Uploads to my website stall if using cloudflare reverse proxy
Error 520 Web server return unknown error
Cloudflare Access Issue
Cloudflare 502 errors today WPO Wordpress
520 - ip is in China
error 520 web serve is returning unknown.
Disable WP-ADMIN from Cloudflare
There are always errors on my website 503 and error 525 errors
520 Error on a specific ISP but the ISP's other users can access the site
Linking CLOUDFLARE TO Ezoic and getting error 502
General Server Error 502 from UK
Error 520 Web server issue
Erro 520 - Já tentei de tudo
Error 520 further investigation
No "Free" with SSL
How does visiting a website sometimes look like this?
Problema 520
Unknown error with cloudfare and web server
Intermitten Error 520
Not connecting to host error 520
Facing Cloudflare 520 Error after integration with Ezoic
Cloudflare 520 Errors with Cloudflare Disabled
I have 520 error several times
My website get 520 error
How to solve 520 error
Intermittent Error 520, host says nothing in logs, Always Online off
Getting an 520 error for website
Refresh/purge cache & flush the dns?
Getting 520 error ragularly
Godaddy and Cloudflare
I cannod find any records regarding Ray ID 6797e715cdb5625b in firewall
How to Resolve 520 error
Website showing 520 error
Every 2 days I got a connection error
Long runtime batch scripts, 520 Error and Page Rules
520 error when accessing my own site
My visitors seeing 520 erro frequently when they go pages to pages please help
Error 524, 520
Error 500 & 520 - How to change
During site browsing we face Error 520
Https://souqamazn.com/wp-admin/index.php
Ошибка 520
520 errors and slow responses in Kyiv region
Error 520 Subdomain
How do i resolve eror 520 on Cloudflare?
Error 520 problem for two minutes?
520 errors related to Caching...?
Always 520
Error 520 client side
Cloudflare Images 520 errors on upload
Purecareers.in
Error 520 persistente en drupal
Random 520 error
Error 520, Web server is returning an unknown error
Error 520 Web server is returning an unknown error - wordpress
Error 520 Web server is returning an unknown error - wordpress
Error code 520 in my subdirectory
Error 520 on front end with reverse proxy from my server to worker
520 error some users
About Error 520
Error 520 Ray ID: 6a0874386e1d375f • 2021-10-19 07:57:09 UTC
Creating Loadbalancer via Cloudflare, KEMP gives error 520
Error 520 appears and goes in a NextCloud instance
520 and 502 errors - issue is not server side (TSOHost)
Host error, Slow loading times (Sometimes loads)
520 and 502 errors - issue is not server side (TSOHost)
520 error issue!
520 error issue!
Error 520 - Cloudflare cache and origin server issue
Host error frequently
Host error, Slow loading times (Sometimes loads)
Error 525 & 520 - Why?
Facing error 520
El error 520
Error 520 'Web server is returning an unknown error"
520 Error not seeing the reason for this
Www.sqlqueries.in
Need help to fix 520 error
Why do I keep having 520 error on my website
My IP is blacklisted on CloudFlare?
Opsikpro website problem
520 Error – no error logs triggered
Root domain resolves, www subdomain causes 520 error
Socat openssl error 520
520 error after transfering to Cloudflare
Web server is returning an unknown error
I am receiving a 502 error page when I test my button on my facebook business page
Permanent bad request due Safari OS X Catalina
520 cloudflare errors occur from time to time when there are more connection requests
Question on Cloudflare Placement
Uploads to my website stall if using cloudflare reverse proxy
Ошибка 520
Uploads to my website stall if using cloudflare reverse proxy
Error 520. Web server is returning an unknown error
520 cloudflare error
I'm having 520 error I have contacted my hosting the problem is not from them
Cloudflare Issues
Website down for 14 hours at least
Problem with website performance for a while
Como eu resolvo os problemas 524 e 520?
Website errors and slowness
Error 520 Web server is returning an unknown error Problem
Error 520 !Web server is returning an unknown error
Community Tip - Sicherheits-FAQ
Community Tip - Alle veröffentlichten Tipps
Webservice calls failing
CommunityTip - セキュリティに関するFAQ最初にお読みくださ
520 Errors in Magento Admin Panel in Category Thumbnails
Domain as an alias
Web server is returning an unknown error. How to fix this
520 error if I log in
Errors 520, Unable to Open wp-admin
5XX error from Canadian Edge Systems
5XX error from Canadian Edge Systems
Cloudflare blocking Joomla 4 Administration - 520 Error (Nginx Config Problem?)
Errors 520, Unable to Open wp-admin
Cloudflare blocking Joomla 4 Administration - 520 Error (Nginx Config Problem?)
520 error when navigating to subdomain, but not to IP address
Cloudflare is unstable from few days and its a disaster with 520 error from cloudflare
Cloudflare 504 520 errors on XML Sitemap Generator
How to fix erorr 520
I can not access my website with enabled service
We are getting frequent 520 Error screen from Cloudflare
We are getting frequent 520 Error screen from Cloudflare
520 error when navigating to subdomain, but not to IP address
520 error when navigating to subdomain, but not to IP address
520 error if I log in
520 error if I log in
520 error if I log in
520 error if I log in
Last 8 hour my site opening very slow and some time 520 error
Last 8 hour my site opening very slow and some time 520 error
Error 520: web server returns an unknown error
Error deal
Error 520: web server returns an unknown error
Random 520 error... the error go away when bypassing cloudflare
Random 520 error... the error go away when bypassing cloudflare
Error deal
Error 520: web server returns an unknown error
Error deal
My website got the Error 520
My website got the Error 520
Dicas da comunidade - Correção de Erro 520: O servidor web está retornando um erro desconhecido Alerta de e-mail, origem inalcançável
Dicas da comunidade - Perguntas Frequentes de Segurança
520 Error - GoDaddy Hosting
Completely locked out by CloudFlare
After the Wordpress 6.0 update
After the Wordpress 6.0 update
Cloudflare Shows Error 525 on GoDaddy Wordpress
520 Error - GoDaddy Hosting
520 Error - GoDaddy Hosting
Cloudflare with Godaddy Managed WP is down
How i fix error 520
Error 520, cant access
How i fix error 520
My website stopped having visitors
Help!! Error 520
My website stopped having visitors
Help!! Error 520
Error 520 after server migration
My website stopped having visitors
My website stopped having visitors
While KBP is rerouted "cloudflared" sites won't loads
Question about firewall and server
Need some questions answered
Error 520 when sending request with PUT method
Delays and errors through DNS entry
Question about firewall and server
Error 520 and Notion page redirect domain
My website is showing blank page
Random HTTP/2.0 connections between Cloudflare and our origin
502 Error on wordpress admin dashboard
Error 520 after 4-5 clicks on site
Error 520 after 4-5 clicks on site
Error 520 after 4-5 clicks on site
520 error tenten
520 error tenten
How to access CF logs?
How to access CF logs?
How to access CF logs?
Error 520 due to my mistake in nameserver
Error 520 due to my mistake in nameserver
Error 520 due to my mistake in nameserver
520 error after purge everything on cloudflare
520 error after purge everything on cloudflare
Error 520 due to my mistake in nameserver
520 Error # Bluehost provided cloudflare package
520 Error using Google SiteKit on Wordpress
Error 520 in Cloudflare, but request never reaches our server
Escalate support ticket? Debug 520?
520 Error # Bluehost provided cloudflare package
Error 520 Issue
Error 520. what's the problem!?
Error 520. what's the problem!?
Error 520. what's the problem!?
Error 520. what's the problem!?
Error 520. what's the problem!?
Some 413 responses are getting turned into 520s
520 error intermittently bringing site down
Weird redirect leading to error
502 Error on wordpress admin dashboard
Error 520 for users connected only
Error 520 displayed on my website
Error 520 displayed on my website
I creat account on shorts.cc mining pool I spend 50 dollar now I am facing 520 error please to solve this issue
SSL / TLS Browser says INVALID certificate
SSL / TLS Browser says INVALID certificate
520 error: How to Fix?
520 error: How to Fix?
How do I get more information on a given Ray ID?
How do I get more information on a given Ray ID?
How do I get more information on a given Ray ID?
Sluggish sites and slew of 52X errors - Anyone else?
Sluggish sites and slew of 52X errors - Anyone else?
Getting 503 error. Checked with host and they told me to speak to CloudFlare again... Any ideas?
5XX errors for accessing some websites in USA
5XX errors for accessing some websites in USA
520 status code
社區提示 - 安全性常見問題
520 host error
520 host error
520 error for server to server api calls
520 errors and lack of help
520 errors and lack of help
Dicas da comunidade - Todas as dicas
520 Error when in WP Dashboard
520 Error when in WP Dashboard
HTTP 200 from origin, 520 from cloudflare
Error 520, refresh = works again
HTTPS/SSL doesn't work
HTTPS/SSL doesn't work
Message Field Disappeared! Cannot Compose New or Reply
TipsKomunitas - Pertanyaan Umum Keamanan
Rayid for requests returning 520
Rayid for requests returning 520
Godaddy changed or Cloudfare SSL error
Godaddy changed or Cloudfare SSL error
Cloudflare Godaddy Wordpress SSL Error
Error 520 - identified the cause but impossible to fix!
Error 520 if I send Early Hints headers on my own
社區提示 - 修復「錯誤 520:網頁伺服器傳回未知錯誤」
CommunityTip - Câu hỏi thường gặp về bảo mật
500 Internal Server Error for all CF sites
커뮤니티 팁 - Error 520: Web server is returning an unknown error 해결
Wordpress website with APO when redirect www loses utms
500 Internal Server Error for all CF sites
CommunityTip - Tất cả các mẹo
Wordpress website with APO when redirect www loses utms
CommunityTip - Khắc phục lỗi 520: Máy chủ web trả về một lỗi không xác định
IP Addresses
Seeing 520 Errors Randomly - Can't Track Down
เคล็ดลับชุมชน - คำถามที่พบบ่อยเกี่ยวกั บการรักษาความปลอดภัย
Error 520 upon request (not response from origin server)
Error 520 upon request (not response from origin server)
TipsKomunitas - Memperbaiki Kesalahan 520: Server web mengembalikan kesalahan yang tidak diketahui
Error 520 upon request (not response from origin server)
Error 520 upon request (not response from origin server)
المنتجات الرقمية | Designo Art
Account Dash Ticket- I have been having Error 520 since 5 days on my site. Few things are working rest are not working
Random Error code 408 when using cloudflare with grpc
コミュニティのヒント - 公開されているすべてのヒント
Error 520 After transfer of nameservers from ezoic to cloudflare
社区提示 - 安全常见问题
Cloudflare images returned error 520. What does it mean?
社区提示 - 所有提示
社区提示 - 修复错误 520:Web 服务器返回未知错误
커뮤니티 팁 - 보안 faq
Error 520 on my Cludflare websites
Error 520: Web server is returning unknown error
When buying a Pro subscription, you ignore emails to technical support and it is not possible to contact you.
CommunityTip - FAQ sur la sécurité
Wordpress website with APO when redirect www loses utms
CommunityTip - Tous les conseils
520 error when URL redirecting
CommunityTip - Correction de l'erreur 520 : le serveur Web renvoie une erreur inconnue
Consigli della community - Risolvere Error 520: Web server is returning an unknown error
520 error on website being accessed by a long URL
One of my users (but not the others) is repeatedly getting a 520 error
One of my users (but not the others) is repeatedly getting a 520 error
520 Errors ~15% of the time on all domains
Moved domain from Weebly to Cloudflare, Now the site is down
Moved domain from Weebly to Cloudflare, Now the site is down
520 Errors ~15% of the time on all domains
Error 520 - All webites with Cloudflare
Error 520 - All webites with Cloudflare
Error 520 - All webites with Cloudflare
Error 5xx log page admin
Finding website IP
Erreur 520 inconnue
Erreur HTTP sur les fichiers volumineux
Can't connect to Jetpack and XML-RPC is not responding correctly ( 520 )
Getting 520 Error on my page randomly
Host Error issue - My domain is not added into Cloudflare then How it is showing this?
Recurring 520 errors preventing access to the back office
Error 520 calling a perfectly working API
My site displays 520 errors, I do not even have access to the back office
My site displays 520 errors, I do not even have access to the back office
My site displays 520 errors, I do not even have access to the back office
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Error 520 when changing DNS record to Proxied
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Cloudflare CDN wlwmanifest error
Cloudflare CDN wlwmanifest error
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Cloudflare Wordpress Plugin not detected + PATCH request 520 ERROR
Blocked IPs
503 error codes is from WP REST API calls. Also, the Cron doesn't work properly
503 error codes is from WP REST API calls. Also, the Cron doesn't work properly
503 error codes is from WP REST API calls. Also, the Cron doesn't work properly
Error 520 on Wordpress app - xmlrpc.php blocked by Cloudflare?
Error 520 on Wordpress app - xmlrpc.php blocked by Cloudflare?
Error 520 on Wordpress app - xmlrpc.php blocked by Cloudflare?
Web server is returning an unknown error Error code 520 + 524
Web server is returning an unknown error Error code 520 + 524
Web server is returning an unknown error Error code 520 + 524
Web server is returning an unknown error Error code 520 + 524
Using a REST API with Cloudflare as sub-domain issues
Problem rule admin-ajax.php 403
Shopventory is being blocked by Cloudflare to access our inventory information
520 error appear random
Shopventory is being blocked by Cloudflare to access our inventory information
Receiving 520 Errors
เคล็ดลับชุมชน - การแก้ไขข้อผิดพลาด 520: เว็บเซิร์ฟเวอร์กำลังส่งคืนข้ อผิดพลาดที่ไม่รู้จัก
Советы сообщества - Исправление ошибки 520: Веб\-сервер возвращает неизвестную ошибку
Origin request with HTTP2/prefetch causes error 520
520 ERROR While accessing website
Random 520 errors
Site not working with www
Советы сообщества - Часто задаваемые вопросы о безопасности
520, 522, 524 -- massive increase lately
Error 520 - Website was ok few minutes ago
ERROR 520 just keeps showing up
Random 520 errors
Every 2 days I got a connection error
Error520, problem with wp-admin login Showing host error
520 Error i need help for my problem. -SSL error
404 error; Not found
Error 520 server load
Display error 520 randomly
Error 520 in Joomla admin
A 520 error
Help with Error 520 using nginx proxy
How can i resolve the HTTP 503,520,521 error
Erro 520 após certificado SSL
520 error 2
Error 520: Web server is returning an unknown error GoDaddy
Intermittent Error 520, host says nothing in logs, Always Online off
Random 520 error, appearing very occasionally
MODx admin panel does not work
Error 520 en la pagina web
Random 520 errors started a few weeks ago
Error 520 from time to time
520 Errors for Telstra Customers in Australia on SIN COLO
Error 525 and Error 520