An Unexpected HTTP Error occurred during the API request

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.

Comments

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

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

    • Ajay Kumar Singh

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

  2. New

    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!

  3. Babu

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

  4. Ganesh Thevar

    i think you use free web hosting that”s why

  5. Aneeza Mubbashir

    not working for me too.

    • Burovets

      All who have this error, check your DNS settings.

  6. kaarthick

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

    how to resolve
    please helpppppppppppppppppppp

  7. Rajaji

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

  8. Chiiiiko

    i have the same problem too :(

Leave a Reply to Aneeza Mubbashir