MitchellMcKenna / LifePress

LifePress is an open source self-hosted lifestreaming platform.
GNU General Public License v3.0
26 stars 5 forks source link

Curl Error #3

Open stanwarri opened 12 years ago

stanwarri commented 12 years ago

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

MitchellMcKenna commented 12 years ago

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

stanwarri commented 12 years ago

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.

MitchellMcKenna commented 12 years ago

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

stanwarri commented 12 years ago

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 commented 12 years ago

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 reply@reply.github.com To: stanwarri stanley.warri@yahoo.com 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

MitchellMcKenna commented 12 years ago

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?

stanwarri commented 12 years ago

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

therourke commented 12 years ago

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 commented 12 years ago

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

MitchellMcKenna commented 12 years ago

@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 commented 12 years ago

@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.

therourke commented 12 years ago

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

MitchellMcKenna commented 12 years ago

@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

therourke commented 12 years ago

Have made the changes and all seems well again. Thanks

stanwarri commented 12 years ago

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.

MitchellMcKenna commented 12 years ago

@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?

stanwarri commented 12 years ago

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

MitchellMcKenna commented 12 years ago

@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