RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

Cannot convert argument to a ByteString because the character at index 364 has a value of 8220 which is greater than 255.

Open lz37 opened this issue 1 year ago • 4 comments

路由地址

/bilibili/hot-search

完整路由地址

/bilibili/hot-search?key=xxx

相关文档

https://docs.rsshub.app/zh/routes/social-media#%E7%83%AD%E6%90%9C

预期是什么?

正常处理unicode

实际发生了什么?

未正常处理unicode

debug info:

Git Hash:[d5f7821d](https://github.com/DIYgod/RSSHub/commit/d5f7821d)
Git Date:Tue, 24 Sep 2024 07:25:20 GMT
Cache Duration:300s
Request Amount:1
Request Frequency:12.892 times/minute
Cache Hit Ratio:0.00%
ETag Matched Ratio:0.00%
Health:100.00%
Uptime:0.00 hour(s)
Hot Routes:
Hot Paths:1 /
Hot Error Routes:
Hot Error Paths:

部署

RSSHub 演示 (https://rsshub.app)

部署相关信息

docker: chromium-bundled-2024-09-25

额外信息

info: Redis connected.
info: 🎉 RSSHub is running on port 1200! Cheers!
info: 💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/sponsor>
info: 🔗 Local: 👉 http://localhost:1200>
info: 🔗 Network: 👉 http://10.244.3.151:1200>
info: 🔗 Network: 👉 http://[::]:1200>
info: <-- GET /bilibili/hot-search
error: Error in /bilibili/hot-search: TypeError: Cannot convert argument to a ByteString because the character at index 364 has a value of 8220 which is greater than 255.
info: --> GET /bilibili/hot-search 503 2s
info: <-- GET /logo.png
info: --> GET /logo.png 200 4ms

这不是重复的 issue

  • [X] 我已经搜索了 现有 issue,以确保该错误尚未被报告。

lz37 avatar Sep 26 '24 02:09 lz37

Searching for maintainers:
  • /bilibili/hot-search: @CaoMeiYouRen

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 关键词,或者留下评论。我们会重新审核。

github-actions[bot] avatar Sep 26 '24 02:09 github-actions[bot]

无法复现这个问题。 可能是热搜中存在问题的字符已经不在了,如果下次再遇到,可以尝试记录下热搜的具体内容,以排查问题。

CaoMeiYouRen avatar Sep 28 '24 03:09 CaoMeiYouRen

奇怪,我也有一样的问题,重新登陆 b 站后,填入新生成 cookies 一切正常了

Mynanase avatar Oct 03 '24 20:10 Mynanase

我也有同样的问题,从Firefox复制cookies填到 BILIBILI_COOKIE_data 环境变量中会出现这样的问题,但是chromium是正常的。

rsshub-1       | (node:47) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
rsshub-1       | (Use `node --trace-deprecation ...` to show where the warning was created)
rsshub-1       | info: Redis connected.
rsshub-1       | info: 🎉 RSSHub is running on port 1200! Cheers!
rsshub-1       | info: 💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/sponsor
rsshub-1       | info: 🔗 Local: 👉 http://localhost:1200
rsshub-1       | info: 🔗 Network: 👉 http://172.18.0.5:1200
rsshub-1       | info: 🔗 Network: 👉 http://[::]:1200
browserless-1  | 2024-10-06T06:55:52.412Z browserless:hardware Checking overload status: CPU 5% Memory 14%
rsshub-1       | info: <-- GET /bilibili/user/video/4184067
rsshub-1       | error: Error in /bilibili/user/video/4184067: TypeError: Cannot convert argument to a ByteString because the character at index 512 has a value of 8230 which is greater than 255.

估计是Firefox的cookies不能给puppeteer用

la1den avatar Oct 06 '24 07:10 la1den