mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(RSS Read Node): Fix issue where some feeds fail to load (#16001)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user