Hi all,<br>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. <br>==========================<br>
/usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?): <a href="http://rss.netflix.com/ReviewsRSS?id=XYZ123">http://rss.netflix.com/ReviewsRSS?id=XYZ123</a> (URI::InvalidURIError)<br> from /usr/lib/ruby/1.8/uri/common.rb:485:in `parse'<br>
from /usr/lib/ruby/1.8/open-uri.rb:29:in `open'<br> from /home/raghus/public_html/<a href="http://feedflix.com/ff/lib/netflix.rb:467:in">feedflix.com/ff/lib/netflix.rb:467:in</a> `process_netflix_reviews'<br>
from /home/raghus/public_html/<a href="http://feedflix.com/ff/lib/workers/netflix_worker.rb:48:in">feedflix.com/ff/lib/workers/netflix_worker.rb:48:in</a> `parse_netflix_feeds'<br> from /home/raghus/public_html/<a href="http://feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:235:in">feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:235:in</a> `send'<br>
from /home/raghus/public_html/<a href="http://feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:235:in">feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:235:in</a> `process_request'<br>
from /home/raghus/public_html/<a href="http://feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:219:in">feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:219:in</a> `receive_data'<br>
from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:53:in `receive_internal_data'<br> ... 15 levels...<br> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in `run'<br>
from /home/raghus/public_html/<a href="http://feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in">feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in</a> `initialize'<br>
from ./script/backgroundrb:42:in `new'<br> from ./script/backgroundrb:42<br>============================<br>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.<br>
<br>In both the controllers, the call is *exactly* the same:<br><br> worker = MiddleMan.worker(:netflix_worker)<br> result = worker.parse_netflix_feeds(l_netflix_rss_code)<br><br>Any ideas what I am missing? Something super-obvious?<br>
<br>Thanks!<br><br>Raghu<br>