• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFFEED Error message

New Here ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

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">
TOPICS
Advanced techniques

Views

757

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

Azadi, That was the first thing I did. The cfdump shows exactly what it should be showing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

it's definitely the value in the db is wrong. but you say when you dump
it it shows up correct? is your code doing any string manipulation on
the data returned by the db?

can you do this:

<pre>
<cfoutput>#RSS.RSSFEED#</cfoutput>
</pre>

just before your cffeed call and post the result here?

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 07, 2008 Oct 07, 2008

Copy link to clipboard

Copied

I need to figure out what is going wrong. The page is, I also included it and the code in an earlier post.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 07, 2008 Oct 07, 2008

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 08, 2008 Oct 08, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation