• Resolved ermannog

    (@ermannog)


    Hello,
    I try use this plugi with the rss feed of CERT-US but Return the error:
    “An error occured for when trying to retrieve feeds! Check the URL’s provided as feed sources”

    Other RSS feed that I have test work, here how I try :
    [feedzy-rss feeds=”https://www.us-cert.gov/ncas/current-activity.xml” max=”30″ feed_title=”no” target=”_blank”]

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Hardeep Asrani

    (@hardeepasrani)

    It appears that the site has blocked outside sources from using their feed. I tried to open it using many different feed fetching services and none is able to fetch it. Hope you understand. ??

    Thread Starter ermannog

    (@ermannog)

    Very strange.. i try insert the feed in https://feedreader.com and it was fetch without problem…

    Thread Starter ermannog

    (@ermannog)

    Hello, do you have do some other checks? confirm that is not possible read the feed of CERT-US? I not have proble with this feed when I use feed reader online…

    Thanks for your time

    Plugin Author Themeisle

    (@themeisle)

    Hey,

    It seems that they block the WordPress useragent and we need to change it to the default SimplePie in order to pass this thru.

    You can use this code snippet to make the magic happen:

    
    add_action( 'http_headers_useragent', 'feedzy_change_user_agent' );
    function feedzy_change_user_agent() {
    	return SIMPLEPIE_USERAGENT;
    }
    
    Thread Starter ermannog

    (@ermannog)

    Hello and sorry for the delay in the response!
    thanks for your suggest

    I can leave a suggest, insert a note on useragent in error message returned and if is possible add a a parameter in the Shortcode, for example SimplePie_UserAgent=”yes”

    J Daubman

    (@livenewsfeeds)

    I have the same problem with the feed I am trying to show.

    [feedzy-rss feeds=”https://pionic.org/feed/rss/” max=”16″ feed_title=”no” target=”_blank” meta=”yes” summary=”yes” summarylength=”240″ thumb=”yes” default=”https://atnnow.com/lnf/wp-content/uploads/2016/09/lnf-icon.png” size=”150″ ]

    Where do I add this code?

    add_action( ‘http_headers_useragent’, ‘feedzy_change_user_agent’ );
    function feedzy_change_user_agent() {
    return SIMPLEPIE_USERAGENT;
    }

    I assume in the function.php file in my theme.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CERT-US RSS: An error occured for when trying to retrieve feeds’ is closed to new replies.