Solution : wordpress An Unexpected HTTP Error occurred during the API request on WordPress Backend

WordPress, class-http.php file in ‘wp-includes‘ folder of your WordPress installation.

Before Change

‘timeout’ => apply_filters( ‘http_request_timeout’, 5),

After Changes

‘timeout’ => apply_filters( ‘http_request_timeout’, 30),

 

.