Error: Video unavailable at Object.exports.playError (/usr/src/app/node_modules/ytdl-core/lib/utils.js:124:12) at downloadFromInfoCallback (/usr/src/app/node_modules/ytdl-core/lib/index.js:72:19) at /usr/src/app/node_modules/ytdl-core/lib/index.js:20:5 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5)
Weirdly, it works just fine on my local machine (in Canada), but fails when deployed to Google Cloud Run on US-West. However the video in question should be available in the United States, and the errors still persist when downloading through a Canadian proxy server, so I don't believe country restrictions is the issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
About 5% of video URL's throw an error.
Version
An example URL which reproducibly fails: youtube.com/watch?v=0NChtZCDCsY
Weirdly, it works just fine on my local machine (in Canada), but fails when deployed to Google Cloud Run on US-West. However the video in question should be available in the United States, and the errors still persist when downloading through a Canadian proxy server, so I don't believe country restrictions is the issue.
When checking for formats with:
any empty array
[]
is printed.A simplified snippet of my code:
Any ideas?