DIYgod/RSSHub · warning

Disqus RSS is disabled due to the lack of <a href="https://d

Error message

Disqus RSS is disabled due to the lack of <a href="https://docs.rsshub.app/deploy/config#route-specific-configurations">relevant config</a>

What it means

Thrown by the disqus posts route when config.disqus is unset or config.disqus.api_key is missing. The Disqus API requires an api_key to call forums/listPosts.json, so RSSHub refuses to serve the route rather than emit failing upstream calls.

Source

Thrown at lib/routes-deprecated/disqus/posts.js:6

const got = require('@/utils/got');
const config = require('@/config').value;

module.exports = async (ctx) => {
    if (!config.disqus || !config.disqus.api_key) {
        throw new Error('Disqus RSS is disabled due to the lack of <a href="https://docs.rsshub.app/deploy/config#route-specific-configurations">relevant config</a>');
    }
    const forum = ctx.params.forum;

    const response = await got({
        method: 'get',
        url: `https://disqus.com/api/3.0/forums/listPosts.json?api_key=${config.disqus.api_key}&forum=${forum}`,
        headers: {
            Referer: 'https://disqus.com/',
        },
    });

    const data = response.data.response;

    const threadsObj = {};
    for (const item of data) {
        threadsObj[item.thread] = 1;
    }
    let threadsQuery = '';

View on GitHub (pinned to bed535e087)

Solutions

  1. Obtain a Disqus API key and set DISQUS_API_KEY on the instance, then restart.
  2. If you cannot provide a key, do not expose the /disqus route (remove it from any docs/clients).
  3. Verify the key works with a direct curl to the Disqus API before blaming RSSHub.

Example fix

# before
# (no disqus config)
# after
DISQUS_API_KEY=your_public_api_key
Defensive patterns

Strategy: validation

Validate before calling

const hasDisqusKey = !!config.disqus?.api_key;
if (!hasDisqusKey) throw new Error('Disqus RSS is disabled ...');

Type guard

const isDisqusConfigured = (c: any): boolean => !!c?.disqus?.api_key;

Prevention

When it happens

Trigger: DISQUS_API_KEY (and/or the disqus config block) is not configured on the instance, and a user requests /disqus/posts/:forum.

Common situations: Fresh deploy without the optional disqus config; key removed during a config cleanup; key name typo in env.

Related errors


AI-assisted analysis of DIYgod/RSSHub@bed535e087 (2026-08-12). Data as JSON: /api/errors/ae2608a4fe3a2f65. Report an issue: GitHub.