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

working with rss

Participant ,
May 20, 2011 May 20, 2011

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?

TOPICS
Getting started
482
Translate
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
Guide ,
May 20, 2011 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.

Translate
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
Participant ,
May 26, 2011 May 26, 2011
LATEST

thank you!

Translate
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