7

I'm building an imageboard, and for some reason this error happens all of the time (ERR_EMPTY_RESPONSE).

enter image description here

I talked to GoDaddy and they say everything seems fine on their side.

Let's say you are trying to create this problem from my perspective, what would you do? What can make this happen? And how do I prevent it.

The "ERR_EMPTY_RESPONSE"s usually last about 1-2 minutes, and when I'm at my school and a couple of friends and I are on my website we all get it.

The funny thing is that say I get the error, then I still see my friends on the website on their computers. Then later on they get the error although I can still browse it....

I use quite a bit of Ajax, might this be the problem? I also tried clearing my .htaccess, still not helping.

  • What is ERR_EMPTY_RESPONSE? Does your code return it? Does it appear to be a server response? – John Conde Jan 21 '15 at 14:36
  • @JohnConde - It's a Chrome response. i.imgur.com/jnURLnH.png - Firefox returns "Connection Reset" – imp Jan 21 '15 at 14:37
  • Neither of these are server errors so there is nothing to fix on the server I assume. These are more network errors. If this happens at school but not at home, then you can narrow it down the network at school. If you get this at home and at the local coffee shop too, then I would not be blaming the local network but looking somewhere up-stream. This may be hard to trace. One thing you can do is create a fairly reasonably sized (semi-loaded) static page that can be accessed. If this works consistently while getting errors, then I would be looking at the site again. – closetnoc Jan 21 '15 at 17:28
  • @closetnoc I'm afraid it happens on various different internet connections, all that I've tried. Also, when I get the error, no page on the domain is available for atleast one minute before the error goes away... – imp Jan 21 '15 at 21:04
  • Try a sizable static page during this time. It can be a junk page. You do not have to link it. Just make sure you know what it should look like. This will tell you if it is the server or the site/page. – closetnoc Jan 22 '15 at 0:33
7

Many people appear to have this problem on Godaddy hosting and Godaddy have told one complainant this

It is possible that when the error is occurring that it is triggering the Mod_sec of the hosting account. In the current hosting account type that you have it isn't possible for us to disable that function for security reasons. We do have hosting accounts with cPanel that allow us to bypass the Mod_Sec rules, which could resolve the issue.

http://vanillaforums.org/discussion/27446/server-fails-every-once-in-a-while

| improve this answer | |
  • So what exactly should I do? I have already tried their phone support, should I call again? – imp Feb 2 '15 at 9:00
  • 3
    Personally speaking - I would move hosting and be done with it. – user29671 Feb 2 '15 at 12:56
0

Some more anecdotal info for future readers:

I created an AJAX-powered app which scrapes data from a 3rd party external site using a rapid-fire series of http requests. This is done with PHP, using AngularJS on the frontend. It works great on my local PC and it makes over 1000 requests pretty quickly and without error.

  • When I upload the app to GoDaddy, I can see that after about 18-35 successful requests (it varies), they all begin to error out with net::ERR_EMPTY_RESPONSE. The whole domain hangs for a bit as described by OP. Then I can try again and I get the exact same behavior.

This leads me to believe that GoDaddy has a bandwidth-per-minute cap or something of that nature. I would be curious if OP's imageboard also loads a large amount of data or uses multiple rapid http requests.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.