Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

856
Views
Error (ERR_STREAM_DESTROYED): no se puede llamar a escribir después de que se destruyó una secuencia

Recibo este error cuando ejecuto mi bot discord en mi raspberry pi. Funcionó cada vez que lo ejecuté en mi máquina con Windows. Instalé FFmpeg con sudo apt-get install ffmpeg. No sé si necesito instalar algo más para ffmpeg en mi raspberry pi Este es el error que estoy recibiendo

 events.js:291 throw er; // Unhandled 'error' event ^ Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed at doWrite (_stream_writable.js:399:19) at writeOrBuffer (_stream_writable.js:387:5) at Socket.Writable.write (_stream_writable.js:318:11) at PassThrough.ondata (_stream_readable.js:718:22) at PassThrough.emit (events.js:314:20) at addChunk (_stream_readable.js:297:12) at readableAddChunk (_stream_readable.js:272:9) at PassThrough.Readable.push (_stream_readable.js:213:10) at PassThrough.Transform.push (_stream_transform.js:152:32) at PassThrough.afterTransform (_stream_transform.js:96:10) Emitted 'error' event on FFmpeg instance at: at errorOrDestroy (internal/streams/destroy.js:108:12) at FFmpeg.onerror (_stream_readable.js:754:7) at FFmpeg.emit (events.js:314:20) at Socket.processError (node_modules/prism-media/src/core/FFmpeg.js:64:40) at Socket.emit (events.js:314:20) at errorOrDestroy (internal/streams/destroy.js:108:12) at onwriteError (_stream_writable.js:418:5) at onwrite (_stream_writable.js:445:5) at doWrite (_stream_writable.js:399:11) at writeOrBuffer (_stream_writable.js:387:5) { code: 'ERR_STREAM_DESTROYED' }

Normalmente, debería reproducir una transmisión de audio en un canal de discordia. No creo que mi código esté mal, porque está funcionando en mi otra computadora. Mi código:

 let stream; //Meme.url is just a youtube link, like https://www.youtube.com/watch?v=dQw4w9WgXcQ stream = ytdl(meme.url, { filter: "audioonly", opusEncoded: true, encoderArgs: ['-af', "dynaudnorm=f=150"] }).on("error", (err) => { console.log(err); }); try { song_queue.connection.play(stream, { type: "opus" }) .on('finish', () => { }); } catch (err) { console.log(err); message.channel.send("Error while the meme song"); }
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

¿Hiciste meme.url un objeto como

 const meme = { url: "your-link-goes-here" }

Bcz no podemos usar . en la definición de las cosas . se usa en objetos.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!