Closed skkpnlq7t4g closed 2 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.
@loganrockmore @NeverBehave @Sea-n @DIYgod @mengx8 @HenryQW any idea for this issue?
In self-hosted environments YouTube route is still not working out of the box. Maybe just a step in the doc is missing. https://github.com/DIYgod/RSSHub/blob/master/docs/en/install/README.md#route-specific-configurations
@skkpnlq7t4g @Hah7qui I had the same error message on a self hosted server. As it turned out, it was the API key restriction settings on Google that rejected my server.
If you also have key restrictions, try create a new key without any restriction and see if it works, and then add some restrictions back while it works.
@skkpnlq7t4g @Hah7qui I had the same error message on a self hosted server. As it turned out, it was the API key restriction settings on Google that rejected my server.
If you also have key restrictions, try create a new key without any restriction and see if it works, and then add some restrictions back while it works.
Thanks for your replay. The key has no restrictions:
I created a new project in GCP. Enabled YouTube service and created a new api key. Now it works.
I am running a self-hosted instance, on a clean brand new server. I have followed the steps above to create a GCP Project, Enabled the YouTube Service, created a Fresh, Unrestricted Key.
I'm still getting the following error:
Route requested: /youtube/user/thestevewallis
Error message: TypeError: Cannot read properties of undefined (reading 'data')
at module.exports (/srv/RSSHub/lib/routes/youtube/user.js:11:100)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /srv/RSSHub/lib/middleware/load-on-demand.js:29:9
at async /srv/RSSHub/lib/middleware/cache/index.js:119:13
at async /srv/RSSHub/node_modules/koa-mount/index.js:52:26
at async module.exports (/srv/RSSHub/lib/middleware/parameter.js:10:5)
at async module.exports (/srv/RSSHub/lib/middleware/anti-hotlink.js:33:5)
at async module.exports (/srv/RSSHub/lib/middleware/template.js:14:5)
at async /srv/RSSHub/lib/middleware/api-response-handler.js:143:9
at async module.exports (/srv/RSSHub/lib/middleware/api-template.js:2:5)
at async module.exports (/srv/RSSHub/lib/middleware/utf8.js:4:5)
at async module.exports (/srv/RSSHub/lib/middleware/header.js:21:5)
at async module.exports (/srv/RSSHub/lib/middleware/debug.js:9:5)
at async grant (/srv/RSSHub/lib/middleware/access-control.js:24:13)
at async module.exports (/srv/RSSHub/lib/middleware/onerror.js:25:9)
Helpful Information to provide when opening issue:
Path: /youtube/user/thestevewallis
Node version: v16.14.0
The Youtube channel works here: https://rsshub.app/youtube/user/thestevewallis, but not here: https://rsshub.thechrisburton.com/youtube/user/thestevewallis
/youtube/playlist/PLkKON9te6p3OpxqDskVsxXOmhfW0uPi1H
is working on both demo instance and self-hosted instance as of replying.
Also,
@skkpnlq7t4g @Hah7qui I had the same error message on a self hosted server. As it turned out, it was the API key restriction settings on Google that rejected my server.
If you also have key restrictions, try create a new key without any restriction and see if it works, and then add some restrictions back while it works.
Originally posted by @c25vdw in https://github.com/DIYgod/RSSHub/issues/7221#issuecomment-895689057
The involved route, with all required and optional parameters
What is expected RSS feed for playlists
What is actually happening No feed is created and an error is displayed
Self-deployment information
Demo is working https://rsshub.app/youtube/playlist/PLkKON9te6p3OpxqDskVsxXOmhfW0uPi1H