fix(RSS Read Node): Fix issue where some feeds fail to load (#16001)

This commit is contained in:
Jon
2025-06-09 11:10:18 +01:00
committed by GitHub
parent 4426249950
commit 18c355d85f
3 changed files with 85 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ export class RssFeedRead implements INodeType {
icon: 'fa:rss',
iconColor: 'orange-red',
group: ['input'],
version: [1, 1.1],
version: [1, 1.1, 1.2],
description: 'Reads data from an RSS Feed',
defaults: {
name: 'RSS Read',
@@ -98,11 +98,20 @@ export class RssFeedRead implements INodeType {
});
}
const parser = new Parser({
const parserOptions: IDataObject = {
requestOptions: {
rejectUnauthorized: !ignoreSSL,
},
});
};
if (nodeVersion >= 1.2) {
parserOptions.headers = {
Accept:
'application/rss+xml, application/rdf+xml;q=0.8, application/atom+xml;q=0.6, application/xml;q=0.4, text/xml;q=0.4',
};
}
const parser = new Parser(parserOptions);
let feed: Parser.Output<IDataObject>;
try {