fent / fent/node-ytdl-core

miniget 410 | Can't download video from YT Music

Open
#1,150 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

### Stack trace
```
/node_modules/miniget/dist/index.js:206
let err = new Miniget.MinigetError(`Status code: ${res.statusCode}`, res.statusCode);
^

MinigetError: Status code: 410
at ClientRequest. (/home/user1/telegram/username/node_modules/miniget/dist/index.js:206:27)
at Object.onceWrapper (node:events:642:26)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
Emitted 'error' event on PassThrough instance at:
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
statusCode: 410
}
```

### Minimal trigger for error:
```js
const ytdl = require('ytdl-core')
ytdl('K7fnAPU4hAY')
```

### First of all:
- Yes, I've installed `ytdl-core@latest`
- Same code on earlier versions didn't work either
- **It's not a [cookie issue](https://github.com/fent/node-ytdl-core/issues/1139), because identical code worked fine on my main computer**
- Yes, I saw [examples/cookies.js](https://github.com/fent/node-ytdl-core/blob/master/example/cookies.js) and no, adding cookies didn't help — code on VPS still has troubles with downloading music
- It's not some sort of IP-restriction, I still can download other videos

### Problem:
The title doesn't quite fit the real problem. It's not the subdomain `music` issue, but the issue of lack of video footage. If there is a video in the link, there is no error.
So the question is, **how do I download the music in this case?**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.