An Unexpected HTTP Error occurred during the API request

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Wordpress - An Unexpected HTTP Error occurred during the API request

Wordpress - An Unexpected HTTP Error occurred during the API request

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.

Similar Posts

12 Responses to “An Unexpected HTTP Error occurred during the API request”

  1. mijie 03. Aug, 2010 at 7:28 am #

    u can find it at wp include/class-http.php

    [Reply]

    Ajay Kumar Singh Reply:

    Thanks buddy!!
    However the error is gone after Internet connection is back to normal.

    [Reply]

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  2. New 18. Aug, 2010 at 12:32 pm #

    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!

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  3. Tien Tinh 21. Sep, 2010 at 10:00 am #

    please read here and discussion more : http://wordpress.org/support/topic/an-unexpected-http-error-occured-during-the-api-request-a-new-variant

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  4. Babu 21. Dec, 2010 at 1:28 pm #

    Dear mijie please explain me how can i solve this problem
    “An Unexpected HTTP Error occurred during the API request”.

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  5. Ganesh Thevar 23. Mar, 2011 at 4:53 am #

    i think you use free web hosting that”s why

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  6. Aneeza Mubbashir 07. Apr, 2011 at 3:20 am #

    not working for me too.

    [Reply]

    Burovets Reply:

    All who have this error, check your DNS settings.

    [Reply]

    Ajay Kumar Singh Reply:

    Tx Burovets.
    And what to check in DNS settings?

    [Reply]

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  7. kaarthick 09. Jun, 2011 at 3:36 pm #

    I am also having An Unexpected HTTP Error occurred during the API request. problem

    how to resolve
    please helpppppppppppppppppppp

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  8. Rajaji 13. Oct, 2011 at 10:36 am #

    An Unexpected HTTP Error occurred during the API request. error Please help me out

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  9. Chiiiiko 19. Oct, 2011 at 8:15 am #

    i have the same problem too :(

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.