Title: Unexpected HTTP Error
Last modified: August 19, 2016

---

# Unexpected HTTP Error

 *  [fadvee1](https://wordpress.org/support/users/fadvee1/)
 * (@fadvee1)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/unexpected-http-error/)
 * Please can someone explain this to me and probably what to do.
 * Each time I try to search for plugin in my dashboard, the result I that always
   pop up was An
 * > Unexpected HTTP Error occurred during the API request.
 *  And prior to this period I was able to install some plugin like GOOGLE XML SITEMAPS
   All in One SEO Pack, Broken Link Checker, etc….
 * So, I was totally surprised when I got the above message.
 * Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [acw](https://wordpress.org/support/users/acw/)
 * (@acw)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487237)
 * Hi
    I’m having the exact same problem trying to add a new plugin You are not 
   alone:) Hope someone out there can help Best Antony
 *  [acw](https://wordpress.org/support/users/acw/)
 * (@acw)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487255)
 * Seems to be working now:)
 *  [timelesstrends](https://wordpress.org/support/users/timelesstrends/)
 * (@timelesstrends)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487499)
 * I think I figured it out.
 * I kept getting the error after installing WordPress and leaving the default email
   as is. Once I changed the default email (in set-up) to my hotmail account everything
   started working again.
 * Good Luck.
 *  [eyarnell77](https://wordpress.org/support/users/eyarnell77/)
 * (@eyarnell77)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487514)
 * I am also getting this error. Tried timelesstrends trick and nothing changed.
   I find if I reload or try again sometimes I am able to get through but I need
   to understand why I am getting the error so I can fix it.
 *  [alittlebitofnothing](https://wordpress.org/support/users/ecomonkey/)
 * (@ecomonkey)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487521)
 * The An Unexpected HTTP Error occurred during the API request seems to occur if
   your server’s firewall blocks outgoing connections from www-data.
 * I discovered this in moving several WP installs to a new server … and then promptly
   forgot that I had done it.
 * Later the problem recurred when commissioning a new server and installing WP …
   seems to be a rare issue, thankfully.
 *  [tophertopher](https://wordpress.org/support/users/tophertopher/)
 * (@tophertopher)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487542)
 * This worked for me after scouring the ‘net for hours:
 * **Prior **to WordPress 3.0
    Edit file http.php in directory wp-includes and find
   the http timeout setting. It is by default set to 5. Increase to 30 or 60. ‘timeout’
   => apply_filters( ‘http_request_timeout’, 60);
 * **WordPress 3.0 and after**
    Edit file plugin-install.php in directory wp-admin/
   includes and find the timeout setting. It is by default set to 15. Increase to
   60. $request = wp_remote_post(‘[http://api.wordpress.org/plugins/info/1.0/&#8217](http://api.wordpress.org/plugins/info/1.0/&#8217);,
   array( ‘timeout’ => 60, ‘body’ => array(‘action’ => $action, ‘request’ => serialize(
   $args))) );
 *  [Reboot](https://wordpress.org/support/users/frizzo/)
 * (@frizzo)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487543)
 * in wordpress 3.1 that code is not in the plugin-install.php file I am getting
   this as of yesterday, anyone?

Viewing 7 replies - 1 through 7 (of 7 total)

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

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 7 participants
 * Last reply from: [Reboot](https://wordpress.org/support/users/frizzo/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/unexpected-http-error/#post-1487543)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
