-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
packy edited this page Jun 18, 2026
·
1 revision
错误: SERVER_UNREACHABLE
解决:
- 确认服务正在运行:
ps aux | grep wx-newspic - 确认服务器地址正确:
--server https://your-server.com - 确认 API Key 正确:
--api-key "sk-xxx" - 确认服务器防火墙已开放端口
错误: SERVER_URL_MISSING
解决:
- 通过
--server参数指定中转服务器地址 - 或设置环境变量
WECHAT_SERVER_URL/WX_NEWSPIC_SERVER - 或运行
wx-newspic credential set --server <url>持久化配置
错误: DRAFT_FAILED
解决:
- 检查中转服务器日志,查看微信 API 返回的详细错误
- 确认 access_token 有效(运行
wx-newspic credential check) - 检查文章内容是否触发微信内容安全审核
- 确认文章标题不超过 32 字、作者不超过 16 字、摘要不超过 128 字
错误: CREDENTIAL_NOT_FOUND
解决:
- 运行
wx-newspic credential show查看当前状态 - 使用
wx-newspic credential set配置凭证 - 或通过
--app-id/--app-secret参数临时指定
错误: UPLOAD_FAILED
解决:
- 确认图片格式为 PNG/JPEG/JPG/GIF
- 确认单张图片 ≤ 10MB
- 确认图片路径正确、文件可读
解决:
- 获取服务器出口 IP:
curl ifconfig.me - 登录微信公众号后台 → 开发 → 基本配置 → IP 白名单
- 添加服务器 IP 到白名单