Very strange, while installing new plugins I saw following error in the Plugin page in the WordPress Admin on following page
/wp-admin/plugin-install.php
An Unexpected HTTP Error occurred during the API request.
I’ve to dog down further to find out what could be the problem. From the error it is obvious that it is a timeout issues. The website and internet connection seems to be slow today (Sunday).
BT broadband sucks during the weekends, they come to dead slow quite often.
In the earlier versions before 3.0 the solution was to increase the timeout value in http.php file. However I can’t find this piece of code in wordpress 3.0.1.
Solution yet to be found…
Just to update those who have tuned to this post…
This was a timeout issues as it is clear from the error. May be server was hibernating or Internet connection was slow.
This error doesn’t appear anymore.
So guys I’m not going to investigate into it anymore.
If you still can’t find a solution then try to change the timeout value as explained elsewhere and see if it solves.
If not then switch to a dedicated server, shared hosting always sucks….
Unfortunately I host my own blog on such a sucker host ;) may be sometimes later I’ll swith host.
u can find it at wp include/class-http.php
Thanks buddy!!
However the error is gone after Internet connection is back to normal.
Ajay, what good post you wrote! If you bothered to flip through google searches, the first page is full of the “solution”. You can find the said lines in file wp-include/class-http.php
But it doesn’t solve the issue. Did you investigate further?
I am doing but no luck yet!
please read here and discussion more : http://wordpress.org/support/topic/an-unexpected-http-error-occured-during-the-api-request-a-new-variant
Dear mijie please explain me how can i solve this problem
“An Unexpected HTTP Error occurred during the API request”.
i think you use free web hosting that”s why
not working for me too.
All who have this error, check your DNS settings.
Tx Burovets.
And what to check in DNS settings?
I am also having An Unexpected HTTP Error occurred during the API request. problem
how to resolve
please helpppppppppppppppppppp
An Unexpected HTTP Error occurred during the API request. error Please help me out
i have the same problem too :(