Raghu Srinivasan
2008-Apr-21 02:03 UTC
[Backgroundrb-devel] Has anyone seen this error message?
Hi all,
I have a background job that parses RSS Feeds. This works just fine when
called from a batch process in a loop, but when triggered by a user i/p, it
*always* craps out with this error message.
=========================/usr/lib/ruby/1.8/uri/common.rb:436:in
`split'': bad URI(is not URI?):
http://rss.netflix.com/ReviewsRSS?id=XYZ123 (URI::InvalidURIError)
from /usr/lib/ruby/1.8/uri/common.rb:485:in `parse''
from /usr/lib/ruby/1.8/open-uri.rb:29:in `open''
from
/home/raghus/public_html/feedflix.com/ff/lib/netflix.rb:467:in`process_netflix_reviews''
from /home/raghus/public_html/
feedflix.com/ff/lib/workers/netflix_worker.rb:48:in
`parse_netflix_feeds''
from /home/raghus/public_html/
feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:235:in`send''
from /home/raghus/public_html/
feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:235:in`process_request''
from /home/raghus/public_html/
feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:219:in`receive_data''
from
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:53:in
`receive_internal_data''
... 15 levels...
from
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in
`run''
from /home/raghus/public_html/
feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in`initialize''
from ./script/backgroundrb:42:in `new''
from ./script/backgroundrb:42
===========================I googled around and saw a few suggestions to escape
pipes ("|") and the
like but this doesn''t have any pipes. And actually the code
doesn''t seem to
have any problems running when called in a loop as part of a batch process.
It''s only when a FORM submit calls it that it craps.
In both the controllers, the call is *exactly* the same:
worker = MiddleMan.worker(:netflix_worker)
result = worker.parse_netflix_feeds(l_netflix_rss_code)
Any ideas what I am missing? Something super-obvious?
Thanks!
Raghu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080420/0c11a9a6/attachment.html