Error: connect ECONNREFUSED shows up when trying to fetch data using RSS parser

I am trying to fetch data from using RSS parser but replit shows

Error: connect ECONNREFUSED

This error only shows up on replit.

Code Snippet

let Parser = require('rss-parser');
let parser = new Parser();
(async () => {
const query='Kimetsu no yaiba 1080p'
let feed = await parser.parseURL(''+query.split(' ').join('+'));
1 Like

Hi @neetlevelsouma welcome to the community!

The reason the above code isn’t working is due to how you are attempting to connect to the website. Port numbers are required here.

I would also check the Replit Terms of Service before continuing with this program as it looks like you are attempting to filter a torrent service.

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