Solution:
Did you check the timeout limit?
WordPress sets a timeout limit for every request. If that treshold is crossed for your request, you will get this message.
To resolve this issue you can increase the time limit to a higher value. Go to the ‘wp-includes’ folder of your WordPress installation and edit the http.php file.