-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
【Discuz】 Cannot read properties of undefined (reading 'content-type') 求测试 修复方向:可以直接使用 got 返回的数据,而不需要使用 iconv 对数据进行解码 #15765
Comments
Searching for maintainers:
If all routes can not be found, the issue will be closed automatically. Please use |
请问是否因为这个原因? #15045 (comment) |
感觉可以参考这个 6a89b50 fix(route): /163/dy2/:id, remove iconv module, use data from got directly instead of decoding data with content-type |
https://raw.githubusercontent.com/DIYgod/RSSHub/master/lib/routes/discuz/discuz.ts 这边也有 iconv import iconv from 'iconv-lite';
|
人工智能反馈给我 根据你提供的修改策略,我们可以直接使用 got 返回的数据,而不需要使用 iconv 对数据进行解码。这是修改后的 discuz.ts 文件的完整代码:
|
你好,能否帮忙测试下上面的代码,如果能正常工作能否合并? 感谢 |
Searching for maintainers:
If all routes can not be found, the issue will be closed automatically. Please use |
Searching for maintainers:
If all routes can not be found, the issue will be closed automatically. Please use |
@junfengP 路由应该是他做的 |
看起来可以这么改造,你可以提一个PR来修复这个路由。 |
你好 能否代为提交代码? import got from '@/utils/got'; 这个got是什么函数? 能否在浏览器的控制台用这个got来测试? got 是一个用于 HTTP 请求的 JavaScript 库,它提供了简单、人性化、强大的 API,可以用于处理各种类型的 HTTP 请求。这个库在 Node.js 环境中运行,因此不能直接在浏览器的控制台中使用。 感谢大哥 |
路由地址
完整路由地址
相关文档
https://docs.rsshub.app/routes/other#discuz
预期是什么?
正常推送
实际发生了什么?
挂了很久了
部署
RSSHub 演示 (https://rsshub.app)
部署相关信息
No response
额外信息
这不是重复的 issue
The text was updated successfully, but these errors were encountered: