Overcome the error message “An Unexpected Error occurred During the HTTP API requests’ WordPress
Sometimes you will encounter the following error message ‘An Unexpected Error occurred During the HTTP API request’ when did request a page (such as upgrading the plugin, plugins searching etc) through the admin dashboard worpdress. This problem may occur during the 2 -3 minutes and then after that your wordpress admin panel back to normal.
If you get this error frequently on your dashboard page, here we provide a solution and how to cope. WordPress set the timeout limit for each demand / request. If it crossed the boundaries of certain requests, in which case you will get an error message. If you need to resolve this problem, it can be done by increasing the ‘time limit’ with the value / higher value.
To increase the ‘timeout limit of requests’, into the directory “wp-includes’ your wordpress installation and edit the files’ http.php’.
Here is a screenshot from the snippets of code where you need to make changes.
Detail the changes as follows:
Before the change
-
‘timeout’ => apply_filters( ‘http_request_timeout’, 5),
-
‘timeout’ => apply_filters( ‘http_request_timeout’, 30),
As we let you know beforehand that this error message appears because the demand exceeds the page limit of time. This may occur because the plugin is being used or use too many plugins are less than optimal.

Web Site Design