RSS Feed Trigger - Unexpected close tag

Describe the problem/error/question

The RSS feed trigger is failing on a valid RSS feed.
error from the rss feed trigger is Unexpected close tag Line: 15 Column: 9 Char: >
RSS feed: Commodities
sample from the feed up to the row 15 breaking:


<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0" xml:base="https://www.benzinga.com/views/taxonomy/term/36240">
    <channel>
    <title>Commodities</title>
    <link>https://www.benzinga.com/views/taxonomy/term/36240</link>
    <description/>
    <language>en</language>
    <item>
    <title>
    /R E P E A T -- MEDIA ADVISORY - Government of Canada to Make an Announcement on Keeping Power Rates Down/
    </title>
    <link>
    https://www.benzinga.com/pressreleases/24/09/n40872317/r-e-p-e-a-t-media-advisory-government-of-canada-to-make-an-announcement-on-keeping-power-rates-dow
    </link>
    <description>
    <p xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml" class="legendSpanClass"><span xmlns="http://www.w3.org/1999/xhtml" class="xn-location">HALIFAX, NS</span></span>, <span xmlns="http://www.w3.org/1999/xhtml" class="legendSpanClass"><span xmlns="http://www.w3.org/1999/xhtml" class="xn-chron">Sept. 13, 2024</span></span> /CNW/ - <span xmlns="http://www.w3.org/1999/xhtml">The Honourable Jonathan Wilkinson, <span xmlns="http://www.w3.org/1999/xhtml" class="xn-location">Canada&#39;s</span> Minister of Energy and Natural Resources, alongside the Honourable Tory Rushton, <span xmlns="http://www.w3.org/1999/xhtml" class="xn-location">Nova Scotia&#39;s</span> Minister of Natural Resources and Renewables; the Honourable Sean Fraser, Member of Parliament for Central Nova;</span><span xmlns="http://www.w3.org/1999/xhtml"> <span xmlns="http://www.w3.org/1999/xhtml" class="xn-person">Kody Blois</span>, Member of Parliament for ...</span></p><p><a href=https://www.benzinga.com/pressreleases/24/09/n40872317/r-e-p-e-a-t-media-advisory-government-of-canada-to-make-an-announcement-on-keeping-power-rates-dow alt=/R E P E A T -- MEDIA ADVISORY - Government of Canada to Make an Announcement on Keeping Power Rates Down/>Full story available on Benzinga.com</a></p>
    </description>
    <category domain="https://www.benzinga.com/topic/environmental-products-services">Environmental Products & Services</category>
    <category domain="https://www.benzinga.com/topic/green-technology">green technology</category>
    <category domain="https://www.benzinga.com/topic/media-advisory">Media Advisory</category>
    <category domain="https://www.benzinga.com/topic/oil">Oil</category>
    <category domain="https://www.benzinga.com/topic/utilities">Utilities</category>
    <category domain="https://www.benzinga.com/markets/commodities">Commodities</category>
    <category domain="https://www.benzinga.com/press-releases">Press Releases</category>
    <pubDate>Mon, 16 Sep 2024 08:00:00 +0000</pubDate>
    <dc:creator>PRNewswire</dc:creator>
    <guid isPermaLink="false">40872317 at https://www.benzinga.com</guid>
    </item>

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

Node type

n8n-nodes-base.rssFeedReadTrigger

Node version

1 (Latest)

n8n version

1.58.2 (Self Hosted)

Time

16/09/2024, 10:54:44

Stack trace

NodeOperationError: Unexpected close tag Line: 15 Column: 9 Char: > at Object.poll (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/RssFeedRead/RssFeedReadTrigger.node.js:57:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:741:32) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:670:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1100:20

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @mraniki,

Looking at the feed while it is partially valid it is not set up in a strict way which is what we expect with the RSS nodes, At the moment the best way to get around this other than asking the feed creator to be more compliant would be to use something like the worklfow below which should do the job.

1 Like

Thank you let me give it a try :+1:

1 Like

It worked perfectly. Thanks once more! :pray:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.