cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Intermittent 404 errors

Hi, I'm hosting a site in PHP through CPanel, and see intermittent errors on multiple pages.  What's strange to me is that for the client, they show up as disconnects (java.io.IOException unexpected end of stream on Connection) but they show up as 404 errrors on the web server log, and when that happens, the PHP script is not invoked.  I've tried placing a log statement at the top of each script, and it never logs during one of the 404 errors.

 

It takes me 15 or less retries to trigger the problem from an Android app, but I can open the same page in Chrome on Windows a hundred times without failure.  Both the lines with 200 and 404 statuses appear to be well-formed requests.  Is it possible for the client to get the URI right and still somehow trigger a 404 on the web server?

 

70.198.53.82 - - [23/Jul/2017:15:39:31 -0700] "POST /birdeye1/flog.php HTTP/1.1" 200 - "-" "Dalvik/2.1.0 (Linux; U; Android 6.0; Android SDK built for x86 Build/MASTER)"
70.198.53.82 - - [23/Jul/2017:15:39:31 -0700] "GET /api.php?f=3&asin=B0002IP2RQ&t=1500849570484&h=abcd1234 HTTP/1.1" 200 1021 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
70.198.53.82 - - [23/Jul/2017:15:39:32 -0700] "POST /birdeye1/flog.php HTTP/1.1" 404 - "-" "Dalvik/2.1.0 (Linux; U; Android 6.0; Android SDK built for x86 Build/MASTER)"
70.198.53.82 - - [23/Jul/2017:15:39:32 -0700] "GET /api.php?f=2&asin=B0002IP2RQ&condition=used&t=1500849570991&h=1234abcd HTTP/1.1" 200 808 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
70.198.53.82 - - [23/Jul/2017:15:39:32 -0700] "GET /api.php?f=2&asin=B0002IP2RQ&condition=new&t=1500849570989&h=1234abcd HTTP/1.1" 404 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
3 REPLIES 3
Moderator
Moderator

Re: Intermittent 404 errors

Hi @phatfingers, thanks for posting.

Was the connection coming from a specific Android App, or from an Android based browser, such as Chrome?

Based on the error message, it sounds like the connection might be terminating on the device first, or having some sort of other error on the device that is causing the connection to fail.

^Gary

Gary - GoDaddy | Community Moderator
24/7 Support | Check System Status

Re: Intermittent 404 errors

It was from a single app.. I am also facing samme error..help me out here please

Re: Intermittent 404 errors

In my case, my Android app was making multiple concurrent API requests.  A web browser usually makes multiple AJAX requests over a single connection when they reference the same server, and I believe my Android app was making them over individual connections, so it looked suspicious and triggered a security rule outside of my hosted environment.  You may need to ask GD's support team to verify whether their firewall rule is being triggered by your app.