Skip to main content
trubel
Participating Frequently
October 6, 2008
Question

CFFEED Error message

  • October 6, 2008
  • 8 replies
  • 875 views
I get this message:
quote:

Unable to read the feed source file C:\websites\dev\http:\rss.news.yahoo.com\rss\mideast


I am trying to use the cffeed. Everything works fine when I use a static feed. But when I try to loop through my db table that contains the RSS Name and RSS Feed, I get the above error message. "C:\websites\dev\" is the web server path. What is causing this to happen? When I manually enter the rss feed in the source attribute it works fine.

works..<cffeed action="read" source=" http://rss.news.yahoo.com/rss/mideast " properties="meta" query="items">
won't work <cffeed action="read" source="#RSS.RSSFEED#" properties="meta" query="items">
This topic has been closed for replies.

8 replies

trubel
trubelAuthor
Participating Frequently
October 8, 2008
I did what you suggested, Actually, if you had read the orginal post you would have known that. Ray didn't even see this error to begin with.
Inspiring
October 8, 2008
if you had done what i suggested you would have seen the space in front
of your url and wouldn't have had to bother Ray with this. :)

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
trubel
trubelAuthor
Participating Frequently
October 7, 2008
I need to figure out what is going wrong. The page is, I also included it and the code in an earlier post.
Inspiring
October 7, 2008
what page?

is it too hard for you to add
<pre><cfoutput>#RSS.RSSFEED#</cfoutput></pre> to your code and post the
result here? do you really want to solve this one?

as I said before, the data in your db is most likely incorrect.
unless you do some manipulation on the data returned from the db before
you use it in your <cffeed> - then your db result manipulation is at fault.

as simple a thing as having a / in front of the feed url will cause this
error.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
trubel
trubelAuthor
Participating Frequently
October 7, 2008
If you go to the page you can see the result.
As, like I said before.... the url is in fact the correct url for the feed. but when the cffeed reads the variable...something happens.
Inspiring
October 7, 2008
well, if i do this:

<cfset RSS = {}>
<cfset RSS.RSSFEED = " http://rss.news.yahoo.com/rss/mideast">
<cffeed action="read" source="#RSS.RSSFEED#" properties="meta"
query="items">

it works fine. that tells me that YOUR RSS.RSSFEED variable does NOT
evaluate to " http://rss.news.yahoo.com/rss/mideast".

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
trubel
trubelAuthor
Participating Frequently
October 7, 2008
Yes, like I said that works for me too, but when I query the DB for the URL, thats where it doesn't seem to be working. Even though I can output #RSS.RSSFeed# and it shows the correct url. This makes me think somethings wrong with the CFFEED or something with the string coming from the DB. Since the static cffeed works, it must be the way the variable is coming from the DB... but when I dump the variable from the query, I get the actually rss feed that I need.

Here is the page url [L=link Removed

trubel
trubelAuthor
Participating Frequently
October 7, 2008
Azadi, That was the first thing I did. The cfdump shows exactly what it should be showing.
Inspiring
October 7, 2008
dump out your #RSS.RSSFEED# variable and see what it contains. compare
it to what you think it contains/what it should contain and do something
about the differences.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/