Skip to content

Container crashing with unhandled exception  #40

@SeeSharpist

Description

@SeeSharpist

Recently the docker container started hanging when downloading videos, then crashes the container. Maybe the latest version of ytdl changed how it's called? Running the container without the -d flag shows this error:

      throw er; // Unhandled 'error' event
      ^

Error: Command failed: /home/app/node_modules/@microlink/youtube-dl/bin/youtube-dl --dump-json --format=18 http://www.youtube.com/watch?v=2HKRfKeVS78
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/home/app/node_modules/@microlink/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1385, in _decrypt_signature
    video_id, player_url, s
  File "/home/app/node_modules/@microlink/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1262, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://www.youtube.com/s/player/45e4d51d/player_ias.vflset/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Cannot identify player u'https://www.youtube.com/s/player/45e4d51d/player_ias.vflset/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

    at ChildProcess.exithandler (child_process.js:294:12)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Emitted 'error' event at:
    at getInfo (/home/app/node_modules/@microlink/youtube-dl/lib/youtube-dl.js:153:25)
    at done (/home/app/node_modules/@microlink/youtube-dl/lib/youtube-dl.js:316:21)
    at done (/home/app/node_modules/@microlink/youtube-dl/lib/youtube-dl.js:55:29)
    at ChildProcess.exithandler (child_process.js:301:5)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./src/server/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-26T16_08_56_255Z-debug.log```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions