HostGator.com » Support Portal

Wordpress error during the API request

Here is a fix for a Wordpress error which we have seen.

Error: *An Unexpected HTTP Error occurred during the API request*.

If this error appears when trying to view plugins or themes, edit the wp-includes/http.php file.

Change this line:
'timeout' => apply_filters( 'http_request_timeout', 5),

to this:
'timeout' => apply_filters( 'http_request_timeout', 30),

Finally, refresh the Wordpress page.


If you have read our knowledge base and still have questions or need more information, please contact us via phone or live chat for immediate assistance.

Post Comment