node-ytdl-core
node-ytdl-core copied to clipboard
Cannot download specific video
Cannot download specific YouTube video with a silent fail.
Video: Nqumhb4BJpw
Format: itag: 135
I noticed the referred format comes without a contentLength
Here are some output I got by commenting ytdl-core
and miniget
sources:
10485760 NaN 0
{ Range: 'bytes=0-10485760' }
{
host: 'rr2---sn-gxqxjvoxn0a-2v5e.googlevideo.com',
hostname: 'rr2---sn-gxqxjvoxn0a-2v5e.googlevideo.com',
path: '/videoplayback?expire=1668204689&ei=MXRuY4fIG4bKxwS5g7SQBQ&ip=186.251.195.123&id=o-ALWoUZG35ionOcM2WxliAJUuRzFEs8H4_oxXQDJ9IeZ0&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=yt_otf&requiressl=yes&mh=U3&mm=31%2C29&mn=sn-gxqxjvoxn0a-2v5e%2Csn-bg07dn6r&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=1135000&vprv=1&mime=video%2Fmp4&ns=PTI24KQJ7PgL8PcmEuKyjocJ&otf=1&otfp=1&dur=0.000&lmt=1620216521379060&mt=1668182755&fvip=5&keepalive=yes&fexp=24001373%2C24007246&c=WEB&n=3wKTsCQYmiIvQw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cotf%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALXDNLlEk9SUHfChVNLmbvMxredH6FXdGQ6_LkLh68oeAiEA1S93GzrVe6MStttDeaMXp8-nNmqMtgHcxVWtXV3mpQw%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAIzRvXt101cvAq9Nbexq-okIYWZ3359w0giGgaoXVnMGAiEAu3a9pY-BKUfGReJC6-XXeowxDLE1JOGF4ESTgMWv2nk%3D',
port: '',
protocol: 'https:',
maxRedirects: 10,
maxRetries: 3,
maxReconnects: 6,
backoff: { inc: 500, max: 10000 },
headers: { Range: 'bytes=0-10485760' }
} 302 {
'last-modified': 'Wed, 02 May 2007 10:26:10 GMT',
date: 'Fri, 11 Nov 2022 16:11:30 GMT',
expires: 'Fri, 11 Nov 2022 16:11:30 GMT',
'cache-control': 'private, max-age=900',
location: 'https://rr1---sn-bg0eznzl.googlevideo.com/videoplayback?expire=1668204689&ei=MXRuY4fIG4bKxwS5g7SQBQ&ip=186.251.195.123&id=o-ALWoUZG35ionOcM2WxliAJUuRzFEs8H4_oxXQDJ9IeZ0&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=yt_otf&requiressl=yes&vprv=1&mime=video%2Fmp4&ns=PTI24KQJ7PgL8PcmEuKyjocJ&otf=1&otfp=1&dur=0.000&lmt=1620216521379060&keepalive=yes&fexp=24001373,24007246&c=WEB&n=3wKTsCQYmiIvQw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cotf%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALXDNLlEk9SUHfChVNLmbvMxredH6FXdGQ6_LkLh68oeAiEA1S93GzrVe6MStttDeaMXp8-nNmqMtgHcxVWtXV3mpQw%3D&redirect_counter=1&rm=sn-gxqxjvoxn0a-2v5e7l&req_id=9fe44622d5c2df3f&cms_redirect=yes&cmsv=e&mh=U3&mm=29&mn=sn-bg0eznzl&ms=rdu&mt=1668183015&mv=m&mvi=1&pl=24&lsparams=mh,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRQIgCSQkT_z5UgJRf_HN8cqXGSHO4qE77ydA2fZlDmO2mjwCIQCfHxr-0U2dzq75rI429eGHCcI308ycuVyU4D_WwkI8Dg%3D%3D',
'content-length': '0',
connection: 'close',
vary: 'Origin',
'cross-origin-resource-policy': 'cross-origin',
'x-restrict-formats-hint': 'None',
'x-content-type-options': 'nosniff',
'content-type': 'text/html',
server: 'gvs 1.0'
}
{
host: 'rr1---sn-bg0eznzl.googlevideo.com',
hostname: 'rr1---sn-bg0eznzl.googlevideo.com',
path: '/videoplayback?expire=1668204689&ei=MXRuY4fIG4bKxwS5g7SQBQ&ip=186.251.195.123&id=o-ALWoUZG35ionOcM2WxliAJUuRzFEs8H4_oxXQDJ9IeZ0&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=yt_otf&requiressl=yes&vprv=1&mime=video%2Fmp4&ns=PTI24KQJ7PgL8PcmEuKyjocJ&otf=1&otfp=1&dur=0.000&lmt=1620216521379060&keepalive=yes&fexp=24001373,24007246&c=WEB&n=3wKTsCQYmiIvQw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cotf%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALXDNLlEk9SUHfChVNLmbvMxredH6FXdGQ6_LkLh68oeAiEA1S93GzrVe6MStttDeaMXp8-nNmqMtgHcxVWtXV3mpQw%3D&redirect_counter=1&rm=sn-gxqxjvoxn0a-2v5e7l&req_id=9fe44622d5c2df3f&cms_redirect=yes&cmsv=e&mh=U3&mm=29&mn=sn-bg0eznzl&ms=rdu&mt=1668183015&mv=m&mvi=1&pl=24&lsparams=mh,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRQIgCSQkT_z5UgJRf_HN8cqXGSHO4qE77ydA2fZlDmO2mjwCIQCfHxr-0U2dzq75rI429eGHCcI308ycuVyU4D_WwkI8Dg%3D%3D',
port: '',
protocol: 'https:',
maxRedirects: 10,
maxRetries: 3,
maxReconnects: 6,
backoff: { inc: 500, max: 10000 },
headers: { Range: 'bytes=0-10485760' }
} 503 {
'last-modified': 'Wed, 02 May 2007 10:26:10 GMT',
'content-type': 'text/plain',
'content-length': '0',
connection: 'close',
vary: 'Origin',
'cross-origin-resource-policy': 'cross-origin',
'x-restrict-formats-hint': 'None',
'x-content-type-options': 'nosniff',
date: 'Fri, 11 Nov 2022 16:11:30 GMT',
server: 'gvs 1.0'
}
{
host: 'rr1---sn-bg0eznzl.googlevideo.com',
hostname: 'rr1---sn-bg0eznzl.googlevideo.com',
path: '/videoplayback?expire=1668204689&ei=MXRuY4fIG4bKxwS5g7SQBQ&ip=186.251.195.123&id=o-ALWoUZG35ionOcM2WxliAJUuRzFEs8H4_oxXQDJ9IeZ0&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=yt_otf&requiressl=yes&vprv=1&mime=video%2Fmp4&ns=PTI24KQJ7PgL8PcmEuKyjocJ&otf=1&otfp=1&dur=0.000&lmt=1620216521379060&keepalive=yes&fexp=24001373,24007246&c=WEB&n=3wKTsCQYmiIvQw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cotf%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALXDNLlEk9SUHfChVNLmbvMxredH6FXdGQ6_LkLh68oeAiEA1S93GzrVe6MStttDeaMXp8-nNmqMtgHcxVWtXV3mpQw%3D&redirect_counter=1&rm=sn-gxqxjvoxn0a-2v5e7l&req_id=9fe44622d5c2df3f&cms_redirect=yes&cmsv=e&mh=U3&mm=29&mn=sn-bg0eznzl&ms=rdu&mt=1668183015&mv=m&mvi=1&pl=24&lsparams=mh,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRQIgCSQkT_z5UgJRf_HN8cqXGSHO4qE77ydA2fZlDmO2mjwCIQCfHxr-0U2dzq75rI429eGHCcI308ycuVyU4D_WwkI8Dg%3D%3D',
port: '',
protocol: 'https:',
maxRedirects: 10,
maxRetries: 3,
maxReconnects: 6,
backoff: { inc: 500, max: 10000 },
headers: { Range: 'bytes=0-10485760' }
} 503 {
'last-modified': 'Wed, 02 May 2007 10:26:10 GMT',
'content-type': 'text/plain',
'content-length': '0',
connection: 'close',
vary: 'Origin',
'cross-origin-resource-policy': 'cross-origin',
'x-restrict-formats-hint': 'None',
'x-content-type-options': 'nosniff',
date: 'Fri, 11 Nov 2022 16:11:31 GMT',
server: 'gvs 1.0'
}
{
host: 'rr1---sn-bg0eznzl.googlevideo.com',
hostname: 'rr1---sn-bg0eznzl.googlevideo.com',
path: '/videoplayback?expire=1668204689&ei=MXRuY4fIG4bKxwS5g7SQBQ&ip=186.251.195.123&id=o-ALWoUZG35ionOcM2WxliAJUuRzFEs8H4_oxXQDJ9IeZ0&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=yt_otf&requiressl=yes&vprv=1&mime=video%2Fmp4&ns=PTI24KQJ7PgL8PcmEuKyjocJ&otf=1&otfp=1&dur=0.000&lmt=1620216521379060&keepalive=yes&fexp=24001373,24007246&c=WEB&n=3wKTsCQYmiIvQw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cotf%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALXDNLlEk9SUHfChVNLmbvMxredH6FXdGQ6_LkLh68oeAiEA1S93GzrVe6MStttDeaMXp8-nNmqMtgHcxVWtXV3mpQw%3D&redirect_counter=1&rm=sn-gxqxjvoxn0a-2v5e7l&req_id=9fe44622d5c2df3f&cms_redirect=yes&cmsv=e&mh=U3&mm=29&mn=sn-bg0eznzl&ms=rdu&mt=1668183015&mv=m&mvi=1&pl=24&lsparams=mh,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRQIgCSQkT_z5UgJRf_HN8cqXGSHO4qE77ydA2fZlDmO2mjwCIQCfHxr-0U2dzq75rI429eGHCcI308ycuVyU4D_WwkI8Dg%3D%3D',
port: '',
protocol: 'https:',
maxRedirects: 10,
maxRetries: 3,
maxReconnects: 6,
backoff: { inc: 500, max: 10000 },
headers: { Range: 'bytes=0-10485760' }
} 503 {
'last-modified': 'Wed, 02 May 2007 10:26:10 GMT',
'content-type': 'text/plain',
'content-length': '0',
connection: 'close',
vary: 'Origin',
'cross-origin-resource-policy': 'cross-origin',
'x-restrict-formats-hint': 'None',
'x-content-type-options': 'nosniff',
date: 'Fri, 11 Nov 2022 16:11:32 GMT',
server: 'gvs 1.0'
}
{
host: 'rr1---sn-bg0eznzl.googlevideo.com',
hostname: 'rr1---sn-bg0eznzl.googlevideo.com',
path: '/videoplayback?expire=1668204689&ei=MXRuY4fIG4bKxwS5g7SQBQ&ip=186.251.195.123&id=o-ALWoUZG35ionOcM2WxliAJUuRzFEs8H4_oxXQDJ9IeZ0&itag=135&aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278&source=yt_otf&requiressl=yes&vprv=1&mime=video%2Fmp4&ns=PTI24KQJ7PgL8PcmEuKyjocJ&otf=1&otfp=1&dur=0.000&lmt=1620216521379060&keepalive=yes&fexp=24001373,24007246&c=WEB&n=3wKTsCQYmiIvQw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cotf%2Cotfp%2Cdur%2Clmt&sig=AOq0QJ8wRgIhALXDNLlEk9SUHfChVNLmbvMxredH6FXdGQ6_LkLh68oeAiEA1S93GzrVe6MStttDeaMXp8-nNmqMtgHcxVWtXV3mpQw%3D&redirect_counter=1&rm=sn-gxqxjvoxn0a-2v5e7l&req_id=9fe44622d5c2df3f&cms_redirect=yes&cmsv=e&mh=U3&mm=29&mn=sn-bg0eznzl&ms=rdu&mt=1668183015&mv=m&mvi=1&pl=24&lsparams=mh,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRQIgCSQkT_z5UgJRf_HN8cqXGSHO4qE77ydA2fZlDmO2mjwCIQCfHxr-0U2dzq75rI429eGHCcI308ycuVyU4D_WwkI8Dg%3D%3D',
port: '',
protocol: 'https:',
maxRedirects: 10,
maxRetries: 3,
maxReconnects: 6,
backoff: { inc: 500, max: 10000 },
headers: { Range: 'bytes=0-10485760' }
} 503 {
'last-modified': 'Wed, 02 May 2007 10:26:10 GMT',
'content-type': 'text/plain',
'content-length': '0',
connection: 'close',
vary: 'Origin',
'cross-origin-resource-policy': 'cross-origin',
'x-restrict-formats-hint': 'None',
'x-content-type-options': 'nosniff',
date: 'Fri, 11 Nov 2022 16:11:34 GMT',
server: 'gvs 1.0'
}
THIS WAS NOT THROWN -> MinigetError: Status code: 503
at ClientRequest.<anonymous> (C:\Users\Guilherme\Projetos\GCSBOSS\ytdl\node_modules\miniget\dist\index.js:200:31)
at Object.onceWrapper (node:events:642:26)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (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) {
statusCode: 503
}
That 503
response has no body ('content-length': '0'
).
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.