WordPress.org

Support

Support » How-To and Troubleshooting » Add New Plugins gives "An Unexpected HTTP Error occurred during the API request"

Add New Plugins gives "An Unexpected HTTP Error occurred during the API request"

  • logantscott
    Member

    @logantscott

    I was able to browse/install plugins all morning and afternoon, but for the past couple hours, I’ve been receiving “An Unexpected HTTP Error occurred during the API request.”

    I searched for this error, but the only solved responses said to increase the timeout in wp-includes/class-http.php or wp-admin/includes/plugin-install.php. This just made the error take longer to show up.

    Using print_r($response); after line 255 in wp-includes/class-http.php shows this:

    WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => couldn’t connect to host ) ) [error_data] => Array ( ) )

    It looks like http://api.wordpress.org/plugins/info/1.0/ is there when I just go to it in my browser… I don’t know why this is happening.

Viewing 1 replies (of 1 total)
  • petecomley
    Member

    @petecomley

    I get the same error when trying to add new plugins but can’t solve with altering time to 30 either. What can I do?

Viewing 1 replies (of 1 total)
  • The topic ‘Add New Plugins gives "An Unexpected HTTP Error occurred during the API request"’ is closed to new replies.