abdulrahman1s / fem-dl

Frontend Masters Course Downloader That actually works.
https://npmjs.com/package/fem-dl
The Unlicense
169 stars 28 forks source link

Throws exception on start #27

Open beevk opened 4 months ago

beevk commented 4 months ago

Hi, thank you for making this library. I cloned this repo, installed all the dependencies (npm i) using node v20.5.0, then I tried running it with npm run start

I'm getting this error when trying to run the program:

Downloading captions for Introduction...
node:internal/process/esm_loader:46
      internalBinding('errors').triggerUncaughtException(
                                ^
ffmpeg version 5.0.1-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
/home/user1/Documents/courses/algorithm-basics/The Last Algorithms Course You'll Need/1. Introduction/Introduction.tmp.mkv: No such file or directory

(Use `node --trace-uncaught ...` to show where the exception was thrown)

Node.js v20.5.02800

So I added the flag -trace-uncaught to the run command and it gives same error as above but with this extra information:

Thrown at:
    at loadESM (node:internal/process/esm_loader:40:33)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

I also tried with node 18.19.1 but same error. Anyway to fix this?

recluzegeek commented 4 months ago

This issue is the clone of #26 I got the same issue several time, while using fem-dl on Linux but it is working flawlessly on windows. I'm downloading a course right now using it, but on windows.

This issue is Linux specific only.

nooreldeensalah commented 3 months ago

Have you managed to solve this?

It seems to be an issue related to Unix-based systems, I tested the tool on Windows and it works fine.

nooreldeensalah commented 3 months ago

We can conclude that this is a compatibility issue on Unix-based systems, I've found an old fork that works on Linux. The fork is 17 commits behind https://github.com/kruzkasu223/fem-dl-working/tree/master, my assumptions are perhaps the code broke while refactoring.

Thought I'd post this so others who get the issue get to try to use this solution

beevk commented 3 months ago

We can conclude that this is a compatibility issue on Unix-based systems, I've found an old fork that works on Linux. The fork is 17 commits behind https://github.com/kruzkasu223/fem-dl-working/tree/master, my assumptions are perhaps the code broke while refactoring.

Thought I'd post this so others who get the issue get to try to use this solution

Thanks for pointing to the fork. That helped :). I hope the bug is fixed soon and works across all the platforms.