I think both requests completed successfully. The second request should just return “0”, not map data. It’s just a test to see if the server can be reached.
Intermittent problems are tough to troubleshoot, but you should look at the Apache and PHP logs when the problem occurs. Have you done that yet?
If you like, you can email me the log files the next time you see a glitch.