Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when playing music #413

Closed
iamtraction opened this issue Nov 7, 2018 · 1 comment
Closed

Getting error when playing music #413

iamtraction opened this issue Nov 7, 2018 · 1 comment
Labels
🐞 Bug Something isn't working with Bastion Third Party Issue Issue with some 3rd party service or dependency

Comments

@iamtraction
Copy link
Member

iamtraction commented Nov 7, 2018

Describe the bug
When trying to play any music, Bastion is showing No results found and youtube-dl is giving a signature extraction error. Using keyword or URL for finding music doesn't make a difference as neither of them work.

To Reproduce
Steps to reproduce the behavior:

  1. Run the command play
  2. Wait for Bastion to respond with no results found
  3. Check the logs to see the error (see below for the log)

Expected behavior
It should be able to play the music without any errors.

Screenshots
image

Environment:

  • Bastion: v7.0.0-alpha.63
  • Node.js: 10.13.0
  • Operating System: Debian 9
  • Architecture: 64bit

Additional context
Error log:

[ERROR]
{ Error: Command failed: /root/ganymede/node_modules/youtube-dl/bin/youtube-dl --dump-json --quiet --ignore-errors --simulate --no-warnings --format=bestaudio[protocol^=http] --user-agent=BastionDiscordBot/v7.0.0-alpha.63 (https://bastionbot.org) --referer=https://bastionbot.org --youtube-skip-dash-manifest -- ytsearch:sugar
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/root/ganymede/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/root/ganymede/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/root/ganymede/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/root/ganymede/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 983, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError(u'Unable to extract Initial JS player signature function name; 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:289:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
  killed: false,
  code: 1,
  signal: null,
  cmd:
   '/root/ganymede/node_modules/youtube-dl/bin/youtube-dl --dump-json --quiet --ignore-errors --simulate --no-warnings --format=bestaudio[protocol^=http] --user-agent=BastionDiscordBot/v7.0.0-alpha.63 (https://bastionbot.org) --referer=https://bastionbot.org --youtube-skip-dash-manifest -- ytsearch:sugar' }
Trace
    at Object.exports.error.message [as error] (/root/ganymede/handlers/logHandler.js:31:11)
    at Object.exports.exec (/root/ganymede/commands/music/play.js:225:17)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[/ERROR]

This issue is not specific to Bastion. It's probably an issue with youtube-dl itself (ytdl-org/youtube-dl#18091)

@iamtraction iamtraction added 🐞 Bug Something isn't working with Bastion Third Party Issue Issue with some 3rd party service or dependency labels Nov 7, 2018
@iamtraction
Copy link
Member Author

Fixed in ytdl-org/youtube-dl@2511eee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working with Bastion Third Party Issue Issue with some 3rd party service or dependency
Projects
None yet
Development

No branches or pull requests

1 participant