Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【知乎】官方自建均报错,一个403 Forbidden,一个401 Unauthorized #17581

Open
1 task done
KwToPA opened this issue Nov 15, 2024 · 7 comments
Open
1 task done
Labels
RSS bug Something isn't working

Comments

@KwToPA
Copy link

KwToPA commented Nov 15, 2024

路由地址

/zhihu/xhu/people/activities/:hexId

完整路由地址

/zhihu/xhu/people/activities/:hexId

相关文档

https://docs.rsshub.app/zh/routes/social-media#%E7%9F%A5%E4%B9%8E

预期是什么?

正常抓取

实际发生了什么?

自建报错,

Error Message:
FetchError: [GET] "https://api.zhihuvvv.workers.dev/guests/token": 401 Unauthorized

Route: /zhihu/xhu/people/activities/:hexId

Node Version: v22.11.0

Git Hash: 85501500

我用docker安装并启动,之前没有加-e ZHIHU_COOKIES="",昨天出现报错 401 Unauthorized,后参考这个(https://docs.rsshub.app/zh/deploy/config#%E7%9F%A5%E4%B9%8E%E7%94%A8%E6%88%B7 )添加cookie依然报错,

官方的RSSHUB源 正常

部署

自建

部署相关信息

No response

额外信息

感谢

这不是重复的 issue

  • 我已经搜索了 现有 issue,以确保该错误尚未被报告。
@KwToPA KwToPA added the RSS bug Something isn't working label Nov 15, 2024
Copy link
Contributor

Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@KwToPA KwToPA changed the title 【知乎】FetchError: [GET] "https://api.zhihuvvv.workers.dev/guests/token": 401 Unauthorized 【知乎】官方自建均报错,一个403 Forbidden,一个401 Unauthorized Nov 15, 2024
Copy link
Contributor

Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@KwToPA
Copy link
Author

KwToPA commented Nov 15, 2024

更新

测试用户

https://www.zhihu.com/people/c0f67bcbd82f73043d2abe8b7b7b9fa4

https://www.zhihu.com/people/myselfszm

同一个人

自建均报错(已经把cookies改成包含z_c0的cookie了)

[GET] "https://api.zhihuvvv.workers.dev/guests/token": 401 Unauthorized

官方报错

https://rsshub.app/zhihu/xhu/people/activities/myselfszm

https://rsshub.app/zhihu/xhu/people/activities/c0f67bcbd82f73043d2abe8b7b7b9fa4

FetchError: [GET] "https://api.zhihuvvv.workers.dev/people/c0f67bcbd82f73043d2abe8b7b7b9fa4/activities?before_id=0&limit=20": <no response> fetch failed

FetchError: [GET] "https://api.zhihuvvv.workers.dev/people/myselfszm/activities?before_id=0&limit=20": 403 Forbidden

https://api.zhihuvvv.workers.dev/people/myselfszm/activities?before_id=0&limit=20

{
  "error": {
    "message": "先获取 udid: https://api.zhihuvvv.workers.dev/appcloud/v1/device",
    "code": 900001,
    "name": "ERR_VVV_NO_UDID"
  }
}

https://api.zhihuvvv.workers.dev/people/c0f67bcbd82f73043d2abe8b7b7b9fa4/activities?before_id=0&limit=20

{
  "error": {
    "message": "先获取 udid: https://api.zhihuvvv.workers.dev/appcloud/v1/device",
    "code": 900001,
    "name": "ERR_VVV_NO_UDID"
  }
}

@KwToPA
Copy link
Author

KwToPA commented Nov 15, 2024

改用 /zhihu/people/activities/:hexId 这个路由可以,估计是 xhu 出问题

@JimenezLi
Copy link
Contributor

xhu 的问题,获取 token 有以下报错:

{
  "error": {
    "message": "请求参数异常,请升级客户端后重试。",
    "code": 10003
  }
}

这个修不了,目前只能用 /zhihu/people/activities/:hexId

@KwToPA
Copy link
Author

KwToPA commented Nov 20, 2024

@JimenezLi /zhihu/people/activities/:hexId 这个路由 抓取内容出现乱码了

何含钥忘台待被

链接点进去,在账号登录状态,也是乱码。退出登录就是正常

@KwToPA
Copy link
Author

KwToPA commented Nov 21, 2024

问客服,系统检测到您的账号有异常使用行为 第一次乱码 24小时,若在此检测异常,乱码时长会增加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants