Skip to content

联合国行使否决权路由报TypeError #2384

Description

@RekiDunois

路由地址 https://rsshub.app/un/scveto (demo和heroku自建实例状况相同)

预期是什么?

输出rss feed

实际发生了什么?

RSSHub 发生了一些意外:
TypeError: Cannot read property 'replace' of null
at module.exports (/data/wwwroot/rsshub.app/lib/routes/un/scveto.js:28:46)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
at async cache (/data/wwwroot/rsshub.app/lib/middleware/cache.js:258:9)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/parameter.js:4:5)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/template.js:15:5)
at async /data/wwwroot/rsshub.app/lib/middleware/api-response-handler.js:148:9
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/api-template.js:2:5)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/utf8.js:4:5)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/debug.js:14:5)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/access-control.js:36:13)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/header.js:17:5)
at async module.exports (/data/wwwroot/rsshub.app/lib/middleware/onerror.js:5:9)

部署相关信息

通过docs.rsshub.app中的https://docs.rsshub.app/install/#部署到-heroku 方式进行部署

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

heroku的日志
2019-06-12T04:01:34.849823+00:00 app[web.1]: �[32minfo�[39m: /un/scveto, user IP: xxx.xxx.xxx.xxx
2019-06-12T04:01:35.181311+00:00 heroku[router]: at=info method=GET path="/un/scveto" host=rsshub-reki.herokuapp.com request_id=xxxxxxxxxxxx fwd="xxx.xxx.xxx.xxx" dyno=web.1 connect=1ms service=330ms status=404 bytes=1144 protocol=https
2019-06-12T04:01:35.177833+00:00 app[web.1]: �[31merror�[39m: Error in /un/scveto: TypeError: Cannot read property 'replace' of null
2019-06-12T04:01:35.177844+00:00 app[web.1]: at module.exports (/app/lib/routes/un/scveto.js:28:46)
2019-06-12T04:01:35.177846+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:89:5)
2019-06-12T04:01:35.177848+00:00 app[web.1]: at async cache (/app/lib/middleware/cache.js:258:9)
2019-06-12T04:01:35.177850+00:00 app[web.1]: at async module.exports (/app/lib/middleware/parameter.js:4:5)
2019-06-12T04:01:35.177852+00:00 app[web.1]: at async module.exports (/app/lib/middleware/template.js:15:5)
2019-06-12T04:01:35.177854+00:00 app[web.1]: at async /app/lib/middleware/api-response-handler.js:148:9
2019-06-12T04:01:35.177856+00:00 app[web.1]: at async module.exports (/app/lib/middleware/api-template.js:2:5)
2019-06-12T04:01:35.177858+00:00 app[web.1]: at async module.exports (/app/lib/middleware/utf8.js:4:5)
2019-06-12T04:01:35.177860+00:00 app[web.1]: at async module.exports (/app/lib/middleware/debug.js:14:5)
2019-06-12T04:01:35.177862+00:00 app[web.1]: at async module.exports (/app/lib/middleware/access-control.js:36:13)
2019-06-12T04:01:35.177864+00:00 app[web.1]: at async module.exports (/app/lib/middleware/header.js:17:5)
2019-06-12T04:01:35.177866+00:00 app[web.1]: at async module.exports (/app/lib/middleware/onerror.js:5:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RSS bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions