{"record":{"id":"ce16e47a0f1b6e33","repo":"jackwener/OpenCLI","slug":"no-notes-found-ensure-you-are-logged-into-creator-ce16e4","errorCode":null,"errorMessage":"No notes found. Ensure you are logged into creator.xiaohongshu.com and the account has published notes.","messagePattern":"No notes found\\. Ensure you are logged into creator\\.xiaohongshu\\.com and the account has published notes\\.","errorType":"exception","errorClass":"EmptyResultError","httpStatus":null,"severity":"warning","filePath":"clis/xiaohongshu/creator-notes.js","lineNumber":452,"sourceCode":"}\ncli({\n    site: 'xiaohongshu',\n    name: 'creator-notes',\n    access: 'read',\n    description: '小红书创作者笔记列表 + 每篇数据 (标题/日期/观看/点赞/收藏/评论)',\n    domain: 'creator.xiaohongshu.com',\n    strategy: Strategy.COOKIE,\n    browser: true,\n    navigateBefore: false,\n    args: [\n        { name: 'limit', type: 'int', default: 20, help: 'Number of notes to return' },\n    ],\n    columns: ['rank', 'id', 'title', 'date', 'views', 'likes', 'collects', 'comments', 'url'],\n    func: async (page, kwargs) => {\n        const limit = kwargs.limit || 20;\n        const notes = await fetchCreatorNotes(page, limit);\n        if (!Array.isArray(notes) || notes.length === 0) {\n            throw new EmptyResultError('xiaohongshu creator-notes', 'No notes found. Ensure you are logged into creator.xiaohongshu.com and the account has published notes.');\n        }\n        return notes\n            .slice(0, limit)\n            .map((n, i) => ({\n            rank: i + 1,\n            id: n.id,\n            title: n.title,\n            date: n.date,\n            views: n.views,\n            likes: n.likes,\n            collects: n.collects,\n            comments: n.comments,\n            url: n.url,\n        }));\n    },\n});\nexport const __test__ = {\n    harvestAnalyzeListCaptures,","sourceCodeStart":434,"sourceCodeEnd":470,"githubUrl":"https://github.com/jackwener/OpenCLI/blob/49907e53dc3ade5c223ff0c4c2c2785687cec4e6/clis/xiaohongshu/creator-notes.js#L434-L470","documentation":"EmptyResultError from the creator-notes command: fetchCreatorNotes returned nothing (or a non-array), so there are no note rows to rank and output. Like the summary variant, the library fails loudly instead of emitting an empty table, because zero rows nearly always indicates an auth or account problem.","triggerScenarios":"The analyze capture path found zero rows (all pages empty), fetchCreatorNotes fell back to an empty array after capture issues, the account has no published notes, or a non-array came back from the fetch path.","commonSituations":"Logged-out or expired cookie session; wrong Chrome profile connected; new account with no notes; login-verification/redirect wall during navigation; prior capture errors suppressed and surfaced as empty results.","solutions":["Verify login to creator.xiaohongshu.com in the connected Chrome and that notes are visible in the note manager.","Confirm the account has published notes; test with a different account.","Re-login to refresh cookies and retry.","Inspect earlier errors in the run (HTTP/capture failures) for the root cause of the empty result.","Check that kwargs.limit isn't 0 or an invalid value in your invocation."],"exampleFix":"// before\nconst notes = await run('xiaohongshu creator-notes', { limit: 20 });\n// after\ntry {\n  return await run('xiaohongshu creator-notes', { limit: 20 });\n} catch (e) {\n  if (/No notes found/.test(e.message)) {\n    await ensureCreatorDashboardLogin();\n    return await run('xiaohongshu creator-notes', { limit: 20 });\n  }\n  throw e;\n}","handlingStrategy":"validation","validationCode":"const limit = Number(kwargs.limit ?? 20);\nif (!Number.isInteger(limit) || limit < 1) throw new Error('limit must be a positive integer');\nif (!await isLoggedInCreatorXhs()) throw new Error('login required before creator-notes');","typeGuard":"function isNonEmptyArray(v) {\n  return Array.isArray(v) && v.length > 0;\n}","tryCatchPattern":"try {\n  return await run('xiaohongshu creator-notes', { limit });\n} catch (e) {\n  if (/No notes found/.test(e.message)) {\n    await ensureCreatorLogin();\n    return await run('xiaohongshu creator-notes', { limit });\n  }\n  throw e;\n}","preventionTips":["Verify login to creator.xiaohongshu.com before each run.","Use an account that has published notes when testing.","Refresh expired cookie sessions proactively.","Watch for earlier capture/HTTP errors in the same run.","Validate kwargs.limit before invoking."],"tags":["empty-result","authentication","xiaohongshu","session-expired"],"backgroundTag":"empty-scrape-result","analyzedSha":"49907e53dc3ade5c223ff0c4c2c2785687cec4e6","analyzedAt":"2026-08-29T08:14:47.543Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}