Skip to content

獲取cookies失敗 #8

Description

@JamesChang20022

我按照issues #4 教程獲取cookies,但是實際使用時顯示過期(我已經重新登入過取得最新cookies)
錯誤報告如下:

(base) D:\james\Documents\GitHub\mi_note_backup\mi-note-export>docker run -it --rm --env-file "%cd%/env" -v "%cd%/public/data:/app/public/data" idootop/mi-note-sync:latest                                                                                   
🚗 开始同步笔记                                                                                                                
🔥 获取笔记列表中...                                                                                                           
731 |   const res = await get(`https://i.mi.com/note/full/page/?ts=${Date.now()}&limit=${limit}&syncTag=${syncTag}`);          
732 |   if (!res?.data?.entries) {
733 |           const divider = "-----------------------------------------------------------------------";
734 |           const tips = `\n${divider}\n👉 获取 Cookie 教程: https://github.com/idootop/mi-note-export/issues/4\n${divider}`;
735 |           if (!process.env.MI_COOKIE || process.env.MI_COOKIE.startsWith("xxx")) throw new Error(`❌ Cookie 未设置,请在 env 文件中设置 MI_COOKIE 后重试。${tips}`);
736 |           throw new Error(`获取笔记列表失败 ${syncTag}\n❌ 当前 Cookie 无效或已过期,请更新 Cookie 后重试。${tips}`);    
                  ^
error: 获取笔记列表失败 
❌ 当前 Cookie 无效或已过期,请更新 Cookie 后重试。
-----------------------------------------------------------------------
👉 获取 Cookie 教程: https://github.com/idootop/mi-note-export/issues/4
-----------------------------------------------------------------------
      at getNoteList (/app/sync.js:736:13)
      at async getNoteEntries (/app/sync.js:802:21)
      at async <anonymous> (/app/sync.js:825:37)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions