Hi All,

Below is the code which was working fine till yesterday for reading a RSS feed 
from a Wordpress site running Wordpress 3.9.1

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<cftry>
                    <cfset rssUrl = "http://www.testsite.com/?feed=rss2";>
                    <cffeed action="read" source="#rssUrl#" query="entriesNews" 
properties="info" timeout = "180">
                    <ul>

                            <cfoutput query="entriesNews" startrow="1" 
maxrows="3">
                               
                                <cfset tempTextNews = #title#>
                                <cfif len(tempTextNews) gt '75'>
                                    <li><a class="NewsEvents" href="#rssLink#" 
target="_blank">#Left(tempTextNews, 75)#...more</a></li>
                                <cfelse>
                                    <li><a class="NewsEvents" href="#rssLink#" 
target="_blank">#title#...more</a></li>
                                </cfif>


                            </cfoutput>
                            <cfcatch type="any">
<!--                            <cfdump var="#entriesNews#"> --->
<!--                            <cfdump var="#info#"> --->                      
     
                                News Feed Temporarily Unavailable
                            </cfcatch>
                    </ul>
    </cftry>


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

http://www.testsite.com/?feed=rss2 is a valid RSS feed and I confirmed that 
with http://validator.w3.org/feed/

www.testsite.com is something I am using here for posting instead of the actual 
website which provides the feed.

If I use a browser, I can see the feeds. Using a feed reader in Google Chrome 
browser, I can notice the feeds load correctly.


If the above code is loaded in a page called testfeed.cfm, I get the message 
"News Feed Temporarily Unavailable". We are using ColdFusion 9 on a Windows 
server with IIS.


The details of error are 

Detail:         Check if the specified host on the port is accessible.

Message:        Connection refused by the specified host on the specified port.

StackTrace:     coldfusion.syndication.FeedReader$ConnectionRefusedException: 
Connection refused by the specified host on the specified port. at 

coldfusion.syndication.FeedReader.getInputStream(FeedReader.java:394)

1. What could have caused a working WordPress RSS feed which was parsed 
correctly by ColdFusion till last week to stop suddenly?

2. How can I resolve the issue?

Any suggestions would be appreciated.

Thanks 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359245
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to