“An Unexpected HTTP Error occurred during the API request.” is a common issue, when searching for a plugin or even installing a plugin, this is how you fix it!
- Login to your FTP server
- Go to wp-includes and edit class-http.php
- Find: ‘timeout’ => apply_filters( ‘http_request_timeout’, 5),
- Change the value “5” to “30”, the value is actually is the number of seconds before the server times out.
- It should be this: ‘timeout’ => apply_filters( ‘http_request_timeout’, 30),
And that’s it! Your An Unexpected HTTP Error occurred during the API request. error should no go away!
This error is usually caused by high load on the WordPress servers or when they’re having technical difficulties.