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

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

Closed
1 task done
lz37 opened this issue Sep 26, 2024 · 4 comments
Labels
RSS bug Something isn't working

Comments

@lz37
Copy link

lz37 commented Sep 26, 2024

路由地址

/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

  • 我已经搜索了 现有 issue,以确保该错误尚未被报告。
@lz37 lz37 added the RSS bug Something isn't working label Sep 26, 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 关键词,或者留下评论。我们会重新审核。

@CaoMeiYouRen
Copy link
Contributor

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

@TonyRL TonyRL mentioned this issue Sep 29, 2024
1 task
@Mynanase
Copy link

Mynanase commented Oct 3, 2024

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

@la1den
Copy link

la1den commented Oct 6, 2024

我也有同样的问题,从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用

@TonyRL TonyRL closed this as completed Oct 20, 2024
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

5 participants