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

【中国政府-信息稿件】 BUG report——中文参数无法传递,没有进行URL的encode #2604

Closed
KwToPA opened this issue Jul 11, 2019 · 8 comments · Fixed by #2784
Labels
RSS bug Something isn't working

Comments

@KwToPA
Copy link

KwToPA commented Jul 11, 2019

在得到推送中国政府-信息稿件后第一时间更新了vps上的rsshub

路由地址

中国政府-信息稿件

/gov/zhengce/govall/

预期是什么?

能够正确推送

实际发生了什么?

报错,详情见下方log

部署相关信息

OS:

centos 7

node --version

v8.16.0

额外信息(日志、报错等)

已解决的问题


ReferenceError: URLSearchParams is not defined

SOLUTION


把node 升到最新版

@ciaranchen
Copy link
Contributor

这是我的错。

https://rsshub.app/gov/zhengce/govall/orpro=习近平&allpro=习近平&searchfield=title

这里的问题是没有考虑中文的情况,没有进行URL的encode,另外文档中示例给了错误的路由例子,search_field 应该为 searchfield

至于上文中的 URLSearchParams is not definedwrong path,我觉得是你部署过程的问题。

@KwToPA
Copy link
Author

KwToPA commented Jul 16, 2019

已解决的问题


ReferenceError: URLSearchParams is not defined

SOLUTION


把node 升到最新版

@KwToPA KwToPA changed the title 【中国政府-信息稿件】 BUG report——自建无论添加advanced与否,均无效;rsshub.app上此路由部分IP有效,advanced无效 【中国政府-信息稿件】 BUG report——中文参数无法传递,没有进行URL的encode Jul 16, 2019
@kt286
Copy link
Contributor

kt286 commented Jul 24, 2019

已解决就把 issue 关了吧

@DIYgod DIYgod closed this as completed Jul 24, 2019
@KwToPA
Copy link
Author

KwToPA commented Jul 24, 2019

@DIYgod 没解决。

已解决问题是

ReferenceError: URLSearchParams is not defined

SOLUTION

把node 升到最新版

表现为自建rsshubgov/zhengce/govall可以打开,但是中文依然不能搜索

未解决问题

中文参数无法传递,没有进行URL的encode

@DIYgod DIYgod reopened this Jul 25, 2019
@KwToPA
Copy link
Author

KwToPA commented Jul 26, 2019

Could you please add a label of bug at the end of title ? Thanks @DIYgod

@DIYgod DIYgod added the RSS bug Something isn't working label Jul 26, 2019
@KwToPA
Copy link
Author

KwToPA commented Aug 5, 2019

still the same

RSSHub 发生了一些意外:

RequestError: Request path contains unescaped characters
    at get (/data/wwwroot/rsshub.app/node_modules/got/source/request-as-event-emitter.js:236:15)
    at Immediate. (/data/wwwroot/rsshub.app/node_modules/got/source/request-as-event-emitter.js:305:10)

@KwToPA
Copy link
Author

KwToPA commented Aug 8, 2019

@kt286 谢谢

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

Successfully merging a pull request may close this issue.

5 participants
@DIYgod @kt286 @KwToPA @ciaranchen and others