node-ytdl-core: Error Code 410
(node:2196) UnhandledPromiseRejectionWarning: Error: Status code: 410
at ClientRequest.<anonymous> (C:\Users\quant\Desktop\e\node_modules\miniget\dist\index.js:210:27)
at Object.onceWrapper (events.js:520:26)
at ClientRequest.emit (events.js:400:28)
at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at TLSSocket.Readable.push (internal/streams/readable.js:204:10)
(Use node --trace-warnings ...
to show where the warning was created)
(node:2196) 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:2196) [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.
No Matter What I Do, I Get This Error.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 19
Which link are you passing to the library? I am experiencing the same behavior, but only on videos with age restriction
same problem with restricted videos, nobody have the solution ?
last night i had this problem, after re-running
npm start
after few minutes it got usable again.I asked my friend, he had experienced something similar but this error 410 occurred on youtube android device then he deleted the cache and could be opened again.
there may be certain limitations that make the api can’t get the desired result, by re-reflecting the cache is regenerated, then it takes a while after that it can be used again.
I only get the issue with age-restricted videos. I think i implemented the cookies but i still get error 410. Or can someone spot an error i made? I am using “evobot” as the base.

any video does it