DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
34.08k stars 7.6k forks source link

pixiv登录失败:ERR_TLS_CERT_ALTNAME_INVALID #6584

Closed mokurin000 closed 3 years ago

mokurin000 commented 3 years ago

已确保部署的是docker latest。

Env Value
OS archlinux
Node version v15.5.0
if Docker, version 20.10.1

rsshub@1.0.0 start /app node lib/index.js

info: Listening Port 1200 info: 🎉 RSSHub start! Cheers! info: Proxy for https://1.1.1.1/dns-query?name=public-api.secure.pixiv.net&type=A info: Proxy for https://210.140.131.223/auth/token error: Pixiv login fail. debug: undefined {"name":"RequestError","code":"ERR_TLS_CERT_ALTNAME_INVALID","timings":{"start":1609526409522,"socket":1609526409524,"lookup":1609526409524,"connect":1609526409524,"error":1609526410018,"phases":{"wait":2,"dns":0,"tcp":0,"total":496}}}

github-actions[bot] commented 3 years ago

👍 感谢提交该 Issue,请确保仔细阅读 Issue 模板RSS 提案模板Feature 提案模板 以便于测试。不符合模板将导致 Issue 被直接关闭。

👍 Thanks for the issue, please follow the Issue template, RSS proposal template or Feature proposal template. Otherwise the issue will be closed.

NeverBehave commented 3 years ago

https://github.com/DIYgod/RSSHub/issues/6141 Related, 这个问题看来是一个比较久远的问题了 https://github.com/DIYgod/RSSHub/blob/dd9bb40c798c2fcab3bc60d1dbbd749dac14cd99/lib/routes/pixiv/pixiv-got.js#L48 https://github.com/sindresorhus/got/issues/477 可以通过手动忽略证书解决, 但是有一定的安全隐患

5962

mokurin000 commented 3 years ago

6141 Related, 这个问题看来是一个比较久远的问题了

https://github.com/DIYgod/RSSHub/blob/dd9bb40c798c2fcab3bc60d1dbbd749dac14cd99/lib/routes/pixiv/pixiv-got.js#L48

sindresorhus/got#477 可以通过手动忽略证书解决, 但是有一定的安全隐患

5962

--env NODE_TLS_REJECT_UNAUTHORIZED 0 这样可以吗?