Feedzirra::Feed.update returns nil

165 views
Skip to first unread message

davidp4web

unread,
Oct 23, 2012, 2:10:11 PM10/23/12
to feed...@googlegroups.com
Hi Paul,

I've been using Feedzirra for a while, and as I said in an earlier post, I really like it.

Since we're fetching the same feed repeatedly, looking for new posts, I implemented a save_feed and load_feed to keep track of the last entry encountered.  It basically Marshal.dump and Marshal.load the feed object.  Prior to dumping, I trim back the feed.entries to the most recent entry and set feed.new_entries to an empty array.

This has worked fine for many months, but we've recently noticed that sometimes when we call Feedzirra::Feed.update with the reloaded feed object, we get back nil rather than an updated feed object.  The callbacks are not invoked.  It appears that the curl.on_success and curl.on_failure in add_feed_to_multi are not being invoked either.

Any ideas?

Thanks!

David

Paul Dix

unread,
Oct 24, 2012, 11:22:51 AM10/24/12
to feed...@googlegroups.com
ugh, off the top of my head I'm not sure. I wonder if there were changes in curb that caused this?

--
You received this message because you are subscribed to the Google Groups "feedzirra" group.
To view this discussion on the web visit https://groups.google.com/d/msg/feedzirra/-/gORzsn4g0wwJ.
To post to this group, send email to feed...@googlegroups.com.
To unsubscribe from this group, send email to feedzirra+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/feedzirra?hl=en.

davidp4web

unread,
Oct 30, 2012, 1:08:10 PM10/30/12
to feed...@googlegroups.com
Hi Paul,

Have you had a chance to look into this more?  What might you suggest as a workaround?

David

David Pellegrini

unread,
Nov 19, 2012, 1:13:44 PM11/19/12
to feed...@googlegroups.com
Hi All,

Has anyone else encountered this problem?  How are you handling it?

I'm getting pressure to find an alternative to feedzirra if there's no resolution forthcoming.  I've had to limp along with resetting all of the feeds on a daily basis, which is surely not a long-term situation.

Suggestions?

David
To view this discussion on the web visit https://groups.google.com/d/msg/feedzirra/-/HPgxjalQg_EJ.

Greg Sher

unread,
Jan 11, 2013, 12:09:18 PM1/11/13
to feed...@googlegroups.com
Hey David,

I have run into the same problem. I implemented a controller action called 'grabnew' based on Paul's post here http://stackoverflow.com/questions/2481285/ruby-feedzirra-and-updates

I was still running into an issue where duplicate feed entries were being inserted into the DB. To resolve this issue, I implemented 'validate_uniqueness' on my feed model.

Pretty specific to my situation, but I hope it helps a bit. Here is the code:

Reply all
Reply to author
Forward
0 new messages