DIYgod/RSSHub · error · ConfigNotFoundError

Skeb followings RSS is disabled due to the lack of relevant

Error message

Skeb followings RSS is disabled due to the lack of relevant config

What it means

Same Skeb auth gate, applied to the friend-works route: requires `config.skeb.bearerToken` to fetch the latest requests from a user's followed clients. Throws before `getFollowingsItems(username, 'friend_works')`.

Source

Thrown at lib/routes/skeb/friend-works.ts:44

    },
    name: 'Friend Works',
    maintainers: ['SnowAgar25'],
    handler,
    radar: [
        {
            title: 'Friend Works',
            source: ['skeb.jp/:username'],
            target: '/friend_works/:username',
        },
    ],
    description: "Get the latest requests for the specified user's followings on Skeb.",
};

async function handler(ctx): Promise<Data> {
    const username = ctx.req.param('username');

    if (!config.skeb || !config.skeb.bearerToken) {
        throw new ConfigNotFoundError('Skeb followings RSS is disabled due to the lack of relevant config');
    }

    const items = await getFollowingsItems(username, 'friend_works');

    return {
        title: `Skeb - ${username} - フォロー中のクライアントの新着リクエスト`,
        link: `https://skeb.jp/${username}`,
        item: items as DataItem[],
    };
}

View on GitHub (pinned to bed535e087)

Solutions

  1. Set `SKEB_BEARER_TOKEN` in the environment and restart.
  2. Validate the token against the Skeb API directly.
  3. Rotate the token on expiry.

Example fix

// before
# SKEB_BEARER_TOKEN unset

// after
SKEB_BEARER_TOKEN=<your bearer token>
Defensive patterns

Strategy: validation

Validate before calling

if (!config.skeb?.bearerToken) {
    return ctx.body('Skeb route requires SKEB_BEARER_TOKEN.', 503);
}

Type guard

const hasSkebToken = (c: typeof config): boolean => Boolean(c.skeb?.bearerToken);

Prevention

When it happens

Trigger: A request to /friend_works/:username on an instance without the Skeb bearer token configured.

Common situations: Default deploy; expired token; public instance without Skeb credentials.

Related errors


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