The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Add New Plugins gives "An Unexpected HTTP Error occurred during the API request" (2 posts)

  1. logantscott
    Posted 4 years ago #

    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.

  2. petecomley
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic