Web server is returning an unknown error Error code 520
What is the issue you’re encountering
520 error happened randomly, around 10%-20% of the time
What steps have you taken to resolve the issue?
I followed all the debug process provided by KB, but no hope. I also tried to gen two HAR files. but don’t know where to upload.
I tried to reduce my app in to a simple script: Echo a random number, and Done. The 520 errors still happened 10%-20% of the time.
I also tried to create sub domain, for this simple script only, it still happened. Please go here: test.php?rand=6 it is happening for rand=6. If not, just change to a random number, put rand=7, rand=8, etc. Try at least 10 times.
What are the steps to reproduce the issue?
Go here: /test.php?rand=6 and you will see the error right away.
If not, change 6 to any random number, repeat at least 10 times.
Thank you for very quick reply. That is the helloword, the code is simple: <? echo rand(1,10000);
die(' Done'); ?>.
If you try test.php?rand=11, you will see it works. Now the error rate seems higher than 20%. rand=12: 520 error, rand=13, 14, 15->22 : ok. rand=23 : 520 error
I have other domains on the same CF accounts, which are pointing to the same server. They are all working just fine. Only this domain, and it happened randomly.
For anyone comes here from search engine or future:
This is CF’s mistake. I never got help from anyone. This is how I solved the problem:
I deleted the domain from my CF account. Then I added to another CF account. Voila.
Hope this helps you, saves you 1-2 days of re-reading tutorials everywhere.