Skip to main content
Inspiring
May 20, 2011
Question

working with rss

  • May 20, 2011
  • 1 reply
  • 554 views

I have this code in my page:

<cffeed action="Read" source=http://www.kompas.com/getrss/english query="feed" properties="feedMetadata">

Is there a way to prevent error message from showing up in my page when the url from this site does not work?

When I access this other site this morning, I found:

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Because of this, my page is showing this error:

Unable to read the source URL.

Status Code: 500. Try adding or changing UserAgent attribute in the CFFeed tag

It would be nice if I can prevent this message from showing up. Is there anything I can do from my CF side?

This topic has been closed for replies.

1 reply

Owainnorth
Inspiring
May 20, 2011

It would be nice if I can prevent this message from showing up. Is there anything I can do from my CF side?

Of course there is, have a read up on basic CF error handling - CFTRY and CFCATCH statements.

mega_LAuthor
Inspiring
May 26, 2011

thank you!