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

Unhandled 'error' event #98

Open
theredcmdcraft opened this issue Jun 11, 2023 · 0 comments
Open

Unhandled 'error' event #98

theredcmdcraft opened this issue Jun 11, 2023 · 0 comments

Comments

@theredcmdcraft
Copy link

In sometimes i got the error below. The Original Link from https://***.mp3 is working. My Problem is not the error self but that the error is not catched. i use this package with discord.js and every time i get this error, the bot is crashing.

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -11,
  code: 'EAGAIN',
  syscall: 'spawn /home/container/node_modules/ffmpeg-static/ffmpeg',
  path: '/home/container/node_modules/ffmpeg-static/ffmpeg',
  spawnargs: [
    '-i',
    'https://cdn.galaxybot.de/sounds/support/open-mika-electronic.mp3',
    '-analyzeduration',
    '0',
    '-loglevel',
    '0',
    '-f',
    's16le',
    '-ar',
    '48000',
    '-ac',
    '2',
    'pipe:1'
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant