Copy link to clipboard
Copied
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:
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
thank you!