LifePress icon indicating copy to clipboard operation
LifePress copied to clipboard

Curl Error

Open stanwarri opened this issue 12 years ago • 18 comments

I'm testing the application on my personal website stanwarri.com and i got this error when trying to add twitter feed

cURL error 28: connect() timed out!

What do you think is the cause, and how can it be resolved.

Thanks

stanwarri avatar Jun 06 '12 19:06 stanwarri

What is the url to the twitter feed you are adding? What OS is your server running?

MitchellMcKenna avatar Jun 06 '12 20:06 MitchellMcKenna

The twitter url is http://twitter.com/stanwarri and my server OS is linux.

It worked on my localhost and I can't figure out why it didn't work online.

stanwarri avatar Jun 06 '12 21:06 stanwarri

Are other rss feeds working like youtube and vimeo?

If they are not, your hosting provider might have curl disabled. Check if curl is enabled on your server by running the following command after you SSH in: curl -v http://www.google.com

If other feeds are working, try entering the rss feed manually: https://twitter.com/statuses/user_timeline/stanwarri.rss

MitchellMcKenna avatar Jun 06 '12 21:06 MitchellMcKenna

Hello,

It seems other feeds works, for example i tried facebook notes feeds, and was able to pull my notes from facebook but couldn't display it on the frontend. I got the error that the template does not support that feed.

Using this https://twitter.com/statuses/user_timeline/stanwarri.rss also gave me same error. I tried using youtube feeds but got this error below when i tried fetcing items by using the "Fetch Feeds" button in the admin side. However, the feeds where fetched as you can see here. http://stanwarri.com/.

Thanks

A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: plugins/youtube_com.php Line Number: 16

stanwarri avatar Jun 07 '12 08:06 stanwarri

Hello

I just want to add that i'm hosting this on a shared server which is linux based. Let me know if this has effect on twitter api.

Thanks


From: Mitchell McKenna [email protected] To: stanwarri [email protected] Sent: Wednesday, June 6, 2012 10:57 PM Subject: Re: [LifePress] Curl Error (#3)

Are other rss feeds working like youtube and vimeo?

If they are not, your hosting provider might have curl disabled. Check if curl is enabled on your server by running the following command after you SSH in: curl -v http://www.google.com

If other feeds are working, try entering the rss feed manually: https://twitter.com/statuses/user_timeline/stanwarri.rss


Reply to this email directly or view it on GitHub: https://github.com/MitchellMcKenna/LifePress/issues/3#issuecomment-6164013

stanwarri avatar Jun 07 '12 08:06 stanwarri

Looks like you found a separate bug with the Youtube imports: i've opened up the issue over here, I'll push up a fix for it soon: Issue #5

As for the twitter curl error, can you try importing someone else's twitter feed? Also can you paste a backtrace for the curl error like you did for the youtube error?

MitchellMcKenna avatar Jun 07 '12 20:06 MitchellMcKenna

I have tried other person's twitter but still got the "cURL error 28: connect() timed out!" error. Also there are no backtrace except that error line

stanwarri avatar Jun 08 '12 13:06 stanwarri

I have a collection of plugins that I've updated myself over the years. They are VERY messy, and full of specific edits related to my site, but they all seem to be working (twitter, youtube included). They might be useful:

http://machinemachine.net/stream/share/share-plugins.zip

therourke avatar Jun 10 '12 14:06 therourke

I haven't been able to pull youtube favourites either. Any idea why this has suddenly stopped working? Other feeds seem to be fine

therourke avatar Jun 15 '12 12:06 therourke

@stanwarri were you able to ssh into your box and try curling the rss urls manually like I mentioned above?

I had an issue with LifePress not working with Github's rss feed because they use HTTPS, i was able to get it to work by doing the following, try adding: curl_setopt($fp, CURLOPT_SSL_VERIFYPEER, false); to line 7699 /application/libraries/simplepie.php . If this doesn't fix it, it's that block of curlopt options that you need to play with.

MitchellMcKenna avatar Jun 15 '12 16:06 MitchellMcKenna

@therourke There was a bug in a recent commit where the feed model was rewritten, should be working now if you pull the recent changes.

MitchellMcKenna avatar Jun 15 '12 18:06 MitchellMcKenna

Hmmm, I updated to newest files, fiddled with plugin a little. What's the exact file that has been changed? I must have missed it

therourke avatar Jun 16 '12 20:06 therourke

@therourke application/models/feed_model.php was rewritten here: 47e6cb97273fb6a64b3225d39f7275a5854e2370 and the fix was added here: 6cd6fe02ffa826a304be2123aeec6b33e8b42cbd

If your still having issues, does your youtube favorites rss feed url look like this? http://gdata.youtube.com/feeds/api/users/crashnburn007/favorites?v=2

MitchellMcKenna avatar Jun 16 '12 20:06 MitchellMcKenna

Have made the changes and all seems well again. Thanks

therourke avatar Jun 18 '12 09:06 therourke

I'm still having that error. Have done a lot of research but couldn't find any useful insight into the problem. Could it be a hosting problem? I'm on a shared server so i don't have SSH access.

stanwarri avatar Jun 23 '12 16:06 stanwarri

@stanwarri since you seem to be the only one who has come across this issue, and it worked on your local, I am leaning towards this being a hosting issue. Who is your hosting provider?

MitchellMcKenna avatar Jun 23 '12 17:06 MitchellMcKenna

@MitchellMcKenna Also i got info that twitter may be blocking the IP. Is that possible? and under what circumstances will twitter do that.

stanwarri avatar Jun 23 '12 18:06 stanwarri

@stanwarri I looked up your domain, is this your hosting provider? If so, they list ssh access as a feature of shared hosting: http://www.ubiquityhosting.com/web-hosting/shared-web-hosting-plans

MitchellMcKenna avatar Jun 23 '12 21:06 MitchellMcKenna