YouTube Download Requests fail on own instance #271

Closed
opened 2025-11-09 09:44:39 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @w2ppx on GitHub (May 15, 2024).

bug description
when downloading from youtube, it returns an error from youtube.js library, tried to change ip, didnt help

reproduction steps
steps to reproduce the behavior:
3. download this video: [link here]
4. see error

screenshots
firefox_LiXNb0k3Sa

links
happens with any link, my instance: web.eepy.today

platform

  • OS [windows]
  • browser [firefox]
  • version [124]

additional context
the error:

TypeError: Failed to parse URL from [object Request]
    at fetch (/root/cobalt/api/node_modules/undici/index.js:111:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
      at new NodeError (node:internal/errors:405:5)
      at new URL (node:internal/url:676:13)
      at new Request (/root/cobalt/api/node_modules/undici/lib/web/fetch/request.js:117:21)
      at fetch (/root/cobalt/api/node_modules/undici/lib/web/fetch/index.js:136:21)
      at fetch (/root/cobalt/api/node_modules/undici/index.js:108:18)
      at HTTPClient.<anonymous> (file:///root/cobalt/api/src/modules/processing/services/youtube.js:44:26)
      at HTTPClient.<anonymous> (file:///root/cobalt/api/node_modules/youtubei.js/dist/src/utils/HTTPClient.js:106:89)
      at Generator.next (<anonymous>)
      at /root/cobalt/api/node_modules/tslib/tslib.js:169:75
      at new Promise (<anonymous>) {
    input: '[object Request]',
    code: 'ERR_INVALID_URL'
  }
}

my instance is using last version:

cobalt API v.7.13.3-5c9ecb2 (current)
Start time: Wed, 15 May 2024 20:53:29 GMT (1715806409815)
Originally created by @w2ppx on GitHub (May 15, 2024). **bug description** when downloading from youtube, it returns an error from youtube.js library, tried to change ip, didnt help **reproduction steps** steps to reproduce the behavior: 3. download this video: **[[link here]](https://www.youtube.com/watch?v=kkg_7cssV7Q)** 4. see error **screenshots** ![firefox_LiXNb0k3Sa](https://github.com/imputnet/cobalt/assets/98914858/7dcd1051-0145-40c6-91eb-2b313e46a132) **links** happens with any link, my instance: web.eepy.today **platform** - OS [windows] - browser [firefox] - version [124] **additional context** the error: ``` TypeError: Failed to parse URL from [object Request] at fetch (/root/cobalt/api/node_modules/undici/index.js:111:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { [cause]: TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:405:5) at new URL (node:internal/url:676:13) at new Request (/root/cobalt/api/node_modules/undici/lib/web/fetch/request.js:117:21) at fetch (/root/cobalt/api/node_modules/undici/lib/web/fetch/index.js:136:21) at fetch (/root/cobalt/api/node_modules/undici/index.js:108:18) at HTTPClient.<anonymous> (file:///root/cobalt/api/src/modules/processing/services/youtube.js:44:26) at HTTPClient.<anonymous> (file:///root/cobalt/api/node_modules/youtubei.js/dist/src/utils/HTTPClient.js:106:89) at Generator.next (<anonymous>) at /root/cobalt/api/node_modules/tslib/tslib.js:169:75 at new Promise (<anonymous>) { input: '[object Request]', code: 'ERR_INVALID_URL' } } ``` my instance is using last version: ``` cobalt API v.7.13.3-5c9ecb2 (current) Start time: Wed, 15 May 2024 20:53:29 GMT (1715806409815) ```
GiteaMirror added the bug label 2025-11-09 09:44:39 -06:00
Author
Owner

@dumbmoron commented on GitHub (May 15, 2024):

hi, are you using the pre-built docker image, or are you building your own image, or are you running cobalt standalone (without any containerization)?

@dumbmoron commented on GitHub (May 15, 2024): hi, are you using the pre-built docker image, or are you building your own image, or are you running cobalt standalone (without any containerization)?
Author
Owner

@wukko commented on GitHub (May 16, 2024):

have you edited the source code in any way?

@wukko commented on GitHub (May 16, 2024): have you edited the source code in any way?
Author
Owner

@w2ppx commented on GitHub (May 16, 2024):

hi, are you using the pre-built docker image, or are you building your own image, or are you running cobalt standalone (without any containerization)?

i am using cobalt standalone

have you edited the source code in any way?

no, i didn’t modify it

@w2ppx commented on GitHub (May 16, 2024): > hi, are you using the pre-built docker image, or are you building your own image, or are you running cobalt standalone (without any containerization)? i am using cobalt standalone > have you edited the source code in any way? no, i didn’t modify it
Author
Owner

@wukko commented on GitHub (May 16, 2024):

@w2ppx can you run npm install? it should fix the issue

@wukko commented on GitHub (May 16, 2024): @w2ppx can you run `npm install`? it should fix the issue
Author
Owner

@w2ppx commented on GitHub (May 16, 2024):

@w2ppx can you run npm install? it should fix the issue

thanks, it worked!

@w2ppx commented on GitHub (May 16, 2024): > @w2ppx can you run `npm install`? it should fix the issue thanks, it worked!
Author
Owner

@wukko commented on GitHub (May 16, 2024):

no problem :D

@wukko commented on GitHub (May 16, 2024): no problem :D
Sign in to join this conversation.