jackwener / jackwener/xiaohongshu-cli
「xhs user-posts 」和「xhs user」执行报错
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 271
- PR merge metrics
- No merged PRs in 30d
Description
### Version
0.6.4
### Operating System
macOS
### What happened?
登录正常,执行「xhs user-posts 」和「xhs user」报如下错误
~ % xhs status
✓ Logged in
昵称: xxx
小红书号: xxx
简介: 还没有简介
~ % xhs user-posts 66bc81dc000000000b032af1 --json
{
"ok": false,
"schema_version": "1",
"error": {
"code": "api_error",
"message": "API error: {\"code\": -1, \"success\": false}"
}
}
~ % xhs user 66bc81dc000000000b032af1 --json
{
"ok": false,
"schema_version": "1",
"error": {
"code": "api_error",
"message": "API error: {\"code\": -1, \"success\": false}"
}
}
### Expected behavior
执行「xhs user-posts 」和「xhs user」命令
### Steps to reproduce
```bash
```
### Error output / logs
```text
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `xhs user-posts 66bc81dc000000000b032af1 --json` and `xhs user 66bc81dc000000000b032af1 --json` on macOS with version 0.6.4, then trace the API request and error handling for both commands. Done means both commands return their expected user data instead of the reported `api_error` response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend-api-design, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100