{"record":{"id":"feab3c02c5b3d5b8","repo":"DIYgod/RSSHub","slug":"error-feab3c","errorCode":null,"errorMessage":"未获取到数据！","messagePattern":"未获取到数据！","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/routes/mihoyo/bbs/follow-list.ts","lineNumber":46,"sourceCode":"    const searchParams = {\n        gids: 2,\n        uid,\n        page_size,\n    };\n    const link = `https://www.miyoushe.com/ys/accountCenter/followList?id=${uid}`;\n    const url = 'https://bbs-api.miyoushe.com/user/wapi/following';\n    const response = await got({\n        method: 'get',\n        url,\n        searchParams,\n        headers: {\n            Origin: 'https://www.miyoushe.com',\n            Referer: link,\n        },\n    });\n    const list = response?.data?.data?.result;\n    if (!list) {\n        throw new Error('未获取到数据！');\n    }\n    const { nickname: username } = await cache.getUserFullInfo(ctx, uid);\n    const title = `米游社 - ${username} 的关注`;\n    const items = list.map((e) => {\n        const title = e.user.nickname;\n        const link = `https://www.miyoushe.com/ys/accountCenter/postList?id=${e.user.uid}`;\n        const description = renderDescription(`${e.user.certification.label || ''}\\n${e.user.introduce || ''}`.trim(), [e.user.avatar_url]);\n        return {\n            title,\n            link,\n            description,\n        };\n    });\n\n    const data = {\n        title,\n        link,\n        item: items,","sourceCodeStart":28,"sourceCodeEnd":64,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/mihoyo/bbs/follow-list.ts#L28-L64","documentation":"Generic Error ('No data retrieved!') thrown by the follow-list route when response.data.data.result is missing. The Miyoushe following API returned HTTP 200 but the expected 'result' array is absent — usually an auth or rate-limit envelope.","triggerScenarios":"got(following) resolves, but response.data.data.result is falsy. Typically: invalid cookie returns an unauthenticated envelope; uid has zero followings in an edge format; upstream API shape changed; rate limit returns an error envelope.","commonSituations":"Expired/invalid MIHOYO_COOKIE; uid is private or has no followings; Miyoushe rate-limited the IP; API envelope changed after a site update.","solutions":["Refresh MIHOYO_COOKIE with a fresh login.","Confirm the uid has followings visible on miyoushe.com.","Wait and retry if rate-limited.","If the envelope changed, report to the route maintainer."],"exampleFix":"// before\nMIHOYO_COOKIE=expired\n\n// after\nMIHOYO_COOKIE=account_id=...; cookie_token=...fresh...","handlingStrategy":"retry","validationCode":"if (!config.mihoyo.cookie) throw new ConfigNotFoundError('MIHOYO_COOKIE missing for follow-list');","typeGuard":"function hasFollowResult(res: any): boolean {\n    return Array.isArray(res?.data?.data?.result);\n}","tryCatchPattern":"try {\n    const list = response?.data?.data?.result;\n    if (!list) throw new Error('No data from Miyoushe');\n} catch (e) { /* refresh cookie / retry */ throw e; }","preventionTips":["Refresh MIHOYO_COOKIE periodically.","Retry on transient empty responses.","Alert on sustained failures pointing to cookie expiry."],"tags":["mihoyo","auth","upstream","rate-limit"],"backgroundTag":null,"analyzedSha":"bed535e0879dc71c5aff6f1e7bd1ac21ede40115","analyzedAt":"2026-08-12T19:29:35.364Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}