Skip to content

发布失败,缺少ai关键词 #170

Description

@1670074219

终端报错如下:
❌ 发布失败: LocalPublisher.init_client..sign_func() got an unexpected keyword argument 'a1'

💡 签名错误排查建议:

  1. 确保 Cookie 包含有效的 a1 和 web_session 字段
  2. Cookie 可能已过期,请重新获取
  3. 尝试使用 --api-mode 通过 API 服务发布 python .\scripts\publish_xhs.py -t "我的标题" -d "正文内容" -i .\demos\terminal\card_1.pngaw\skills\xhs-note-creator>

🚀 准备发布笔记(本地模式)...
📌 标题: 我的标题
📝 描述: 正文内容
🖼️ 图片数量: 1

❌ 发布失败: LocalPublisher.init_client..sign_func() got an unexpected keyword argument 'a1'

解决方案:
安装的是 xhs==0.2.13,requirement里面是0.4.0发现没有这个包
代码修改如图
Image

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