banner ad

Unexpected HTTP Error during the API request: Fixed / Resolved

pennybutler • November 18, 2009 • Comments (0)

Unexpected HTTP Error during the API request

Kept getting this damn An Unexpected HTTP Error occurred during the API request during the past week all of a sudden – usually when I want to write a new post or upgrade on a plugin, or pretty much any link I choose in the backend. 

Annoying but usually refreshing the page and just staying on that tab would get it back up and running again – but I like to multi-task, so when one tab is loading one thing, I’m usually in another tab doing something else, so tonight I decided to see if there was a simple resolution, and thanks to this post on the WordPress.org forums, I was able to fix it, although it’s more of a bandaid fix, since I’m not sure why it started all of a sudden and didn’t used to do it – probably some beautiful plugin that I can’t live without lol.. 

Unexpected HTTP Error

Open wp_include/http.php file on line 223

I used FTP and copy it to my computer to edit it:

Unexpected HTTP Error

Then I changed the timeout from 5 seconds to 30 seconds:

From this:

'timeout' => apply_filters( 'http_request_timeout', 5),

To this:

'timeout' => apply_filters( 'http_request_timeout', 30),

Worked for me and several others who are having the same problem, so if you are having this problem, you might also wish to try it.

Please feel free to share your ideas if you have other possible solutions for others.. 

Related Posts with Thumbnails

Incoming search terms:

Tags: , , ,

Category: Wordpress Troubleshooting

About the Author

Penny is passionate about DIY (Do it yourself) Social Media and Wordpress. She also has a "Done for you" Service on her other website (BallaratMarketing.com). Both her sites help businesses and individuals get more leads via real-time internet marketing with a focus on Social Media marketing (Facebook, Twitter, YouTube, Wordpress & more).

View Author Profile

Comments (0)

Trackback URL | Comments RSS Feed

There are no comments yet. Why not be the first to speak your mind.

Go Ahead, Speak Your Mind

Connect with Facebook




If you want a picture to show with your comment, go get a Gravatar.