Skip to content

把缓存设为空时无法正常访问 #1728

@ghost

Description

预期是什么?

lib/config.js第6行的缓存设为null时可以正常访问RSSHub

cacheType: process.env.CACHE_TYPE || null, // 缓存类型,支持 'memory' 和 'redis',设为空可以禁止缓存

实际发生了什么?

root@debian:~/RSSHub# npm start

> [email protected] start /root/RSSHub
> node lib/index.js

warn: Youtube RSS is disabled due to the lack of token, api key or relevant config in config.js.
warn: Telegram RSS is disabled due to the lack of token, api key or relevant config in config.js.
info: 🎉 RSSHub start! Cheers!
error: uncaughtException: TypeError: Cannot set property 'tryGet' of undefined
info: Pixiv login success.

这里并没有出现

info: Listening Port 1200

而且也访问不了1200端口,如果把缓存设为memory,是可以正常访问的

部署相关信息

Env Value
OS debian9
Node version 10.15.3
if Docker, version no

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions