Skip to content
Discussion options

You must be logged in to vote

Hi @affhp! I'm Dosu and I'm helping the RSSNext team.

The issue is on this line in your handler:

const response = await got(currentURL);
const $ = load(response);

In RSSHub, got() returns a response object, not the HTML body directly. You need to use response.data to access the HTML content [1]:

const response = await got(currentURL);
const $ = load(response.data);  // ← use response.data

Because you're passing the entire response object to load(), Cheerio can't parse it properly, your selectors find nothing, and the items array ends up empty. RSSHub's middleware then throws the "this route is empty" error whenever data.item is empty or undefined [2].

There's also a secondary bug — you r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@affhp
Comment options

Answer selected by affhp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant