TimeForANinja / node-ytpl

Anonymous YouTube playlist resolver.
MIT License
202 stars 48 forks source link

Error thrown when trying to use a channel playlist ID #119

Closed OmgImAlexis closed 3 years ago

OmgImAlexis commented 3 years ago
> var ytpl = require('ytpl');
undefined
> ytpl('UU2-i3KuYoODXsM99Z3')
Promise { <pending> }
> (node:92625) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'playlistSidebarRenderer' of undefined
    at module.exports (/Users/xo/code/OmgImAlexis/_/node_modules/ytpl/lib/main.js:29:6)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:92625) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:92625) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
TimeForANinja commented 3 years ago

sry for taking a while to reply i guess they changed the default behaviour you can even see it if you manually go to the playlist page https://www.youtube.com/playlist?list=UU2-i3KuYoODXsM99Z3 they don't display an error but redirect to the main page...

so the error block starting here basically becomes useless

image youtube does actually tell us that it wasn't found we only need to find out where they hide the 204

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.2.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

TimeForANinja commented 3 years ago

thanks for letting me know about the error the new Version should at least produce a clean error