Title: Plugin API HTTP Error
Last modified: August 19, 2016

---

# Plugin API HTTP Error

 *  [jeffreyhoschak](https://wordpress.org/support/users/jeffreyhoschak/)
 * (@jeffreyhoschak)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-api-http-error/)
 * I am trying to install plugins from the dashboard, but when I try to search or
   use the featured or popular button, I get the following error:
    An Unexpected
   HTTP Error occurred during the API request.
 * How do I resolve this issue?

Viewing 15 replies - 1 through 15 (of 41 total)

1 [2](https://wordpress.org/support/topic/plugin-api-http-error/page/2/?output_format=md&replies=42)
[3](https://wordpress.org/support/topic/plugin-api-http-error/page/3/?output_format=md&replies=42)
[→](https://wordpress.org/support/topic/plugin-api-http-error/page/2/?output_format=md&replies=42)

 *  [skywolfyx1](https://wordpress.org/support/users/skywolfyx1/)
 * (@skywolfyx1)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936466)
 * i have the same problem, anybody help us
 *  [skywolfyx1](https://wordpress.org/support/users/skywolfyx1/)
 * (@skywolfyx1)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936467)
 * i have the same problem, anybody help us
 *  [wikinerd](https://wordpress.org/support/users/wikinerd/)
 * (@wikinerd)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936468)
 * same here.
 *  [creap](https://wordpress.org/support/users/creap/)
 * (@creap)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936491)
 * +1
 *  [Anthony Acosta](https://wordpress.org/support/users/anthon1/)
 * (@anthon1)
 * [17 years ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936522)
 * “An Unexpected HTTP Error occured during the API request”
 * Very annoying, don’t have a clue how to troubleshoot this one.
 *  [sybold](https://wordpress.org/support/users/sybold/)
 * (@sybold)
 * [17 years ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936523)
 * same problem, and i can’t fix it on my own. please anybody?
 *  [jasonrhodes](https://wordpress.org/support/users/jasonrhodes/)
 * (@jasonrhodes)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936565)
 * All I can tell, at this point, is that this is typically a proxy error. I have
   my site situated so that it bypasses the main proxy server, so I can avoid caching
   while the site is in development.
 * Because of that, I think, I am getting the exact error you all are talking about
   in several places throughout the admin section.
 *  [jimmiwin](https://wordpress.org/support/users/jimmiwin/)
 * (@jimmiwin)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936568)
 * So anyone finally resolve this?
 *  [paavels](https://wordpress.org/support/users/paavels/)
 * (@paavels)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936572)
 * I did.
 * Short answer: Probably server DNS settings aren’t properly configured
 * Long answer:
 * wp-includes/http.php file has lines:
 *     ```
       $response = array( 'headers' => array(), 'body' => '', 'response' => array('code' => false, 'message' => false), 'cookies' => array() );
       		foreach ( (array) $transports as $transport ) {
       			$response = $transport->request($url, $r);
       ```
   
 * Add line after to see the error:
 *     ```
       print_r($response);
       ```
   
 *  [efree_unix](https://wordpress.org/support/users/efree_unix/)
 * (@efree_unix)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936574)
 * The cause of error is too long in the process of requesting the API plugin in
   the wordpress server so that the operation timed out. By default, wordpress give
   5 seconds time limit to request a plugin. If within 5 seconds does not get a 
   replay, then the process will be stopped and displayed an error “An Unexpected
   HTTP error occurred during the API request.”
 * Open **wp_include/http.php** file on line 223
 * >  ‘timeout’ => apply_filters( ‘http_request_timeout’, 5),
 * change the script above into
 * >  ‘timeout’ => apply_filters( ‘http_request_timeout’, 30),
 * If you understand about Indonesian language, You can visit my new blog [here](http://justepri.web.id/mengatasi-http-error-saat-me-request-api-di-wordpress).
   [Here](http://justepri.web.id/mengatasi-http-error-saat-me-request-api-di-wordpress)
   is the complete explanation.
 *  [cornettes](https://wordpress.org/support/users/cornettes/)
 * (@cornettes)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936591)
 * Thanks efree_unix, I honestly didn’t think that would work because I have dozens
   of sites with the exact same configuration and only a few were giving this error,
   but i made the change you suggested and it worked.
 *  [hartwigrobert](https://wordpress.org/support/users/hartwigrobert/)
 * (@hartwigrobert)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936592)
 * THANKS!! The timeout change to 30 worked like a charm.
    I had the same error 
   when searching for a new plugin.
 * “An Unexpected HTTP Error occured during the API request”
 *  [davidgeisbush](https://wordpress.org/support/users/davidgeisbush/)
 * (@davidgeisbush)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936593)
 * I’ve got this same error message and have tried changing the timeout to 30 seconds
   with no joy. This began when I tried to activate 5-6 plugins at once and completely
   blocks my use of the admin dashboard.
 * PS. I’m running wordpress 2.8.4 on linux (off a QNAP server) with no outside 
   access so it shouldn’t be a DNS issue.
 *  [stengah](https://wordpress.org/support/users/stengah/)
 * (@stengah)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936599)
 * The timeout limit fix did not work for me either.
 * As this in my case is on a completely new install of WP (no added plugs) I suspected
   this error to occur to be caused by lack of WordPress API key under the Akismet
   plugin settings.
 * However, trying that did not help either – neither has incrementiung the limit(
   as per fix above) to 45 secs).
 * Help would be appreciated
 * /Mads
 *  [h4x3d](https://wordpress.org/support/users/h4x3d/)
 * (@h4x3d)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-api-http-error/#post-936602)
 * same problem.

Viewing 15 replies - 1 through 15 (of 41 total)

1 [2](https://wordpress.org/support/topic/plugin-api-http-error/page/2/?output_format=md&replies=42)
[3](https://wordpress.org/support/topic/plugin-api-http-error/page/3/?output_format=md&replies=42)
[→](https://wordpress.org/support/topic/plugin-api-http-error/page/2/?output_format=md&replies=42)

The topic ‘Plugin API HTTP Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 41 replies
 * 34 participants
 * Last reply from: [efree_unix](https://wordpress.org/support/users/efree_unix/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-api-http-error/page/3/#post-936638)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
