520 error 2

for the past 2-3 days we seeing 520 in multiple websites and multiple origin servers when using CF free plans. and also the routes are for us, where we live in Sri Lanka, we don’t hit the Colombo(local) pop, they route us to USA thats 19 or so hops, even tho we have others pop’s much closer, and this result in 520’s as its far then actual origin server, it its basically beats the purpose of a CDN. but as soon as you upgrade to pro, its goes away without any changes to servers or settings in CF

1 Like

Hi @Kalinga (again),

Due to the number of 520s being reported in similar circumstances, we are escalating the issue to Cloudflare Support. The original incident should have been resolved and your issue may well be unrelated.

We recommend checking these troubleshooting tips, if you haven’t already.


If you have been through these thoroughly and are not seeing corresponding issues on your network/server and you have a ticket number with Cloudflare, please reply and post that #.

To enable efficient troubleshooting by support, please ensure you include the following on the ticket:

  • example URL(s) where you are seeing the error
  • Ray IDs from the 520 pages
  • output from a traceroute from any impacted user
  • output of example.com/cdn-cgi/trace - replace example.com with the affected domain.
  • Also include 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 ?

You can use the following support request when escalating the issue - 2247793

1 Like

So as part of https://community.cloudflare.com/t/random-520-errors/ we fixed an issue with origins silently ending a keepalive connection that was causing very rare 520 errors.

Thus we recommend testing again - if you still see 520s - make sure you follow the guidance in our community tip here:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.