ReneR97 / domestika-downloader

Download full domestika courses
https://www.buymeacoffee.com/ReneR97
49 stars 14 forks source link

Downloads Nothing #27

Closed passion3545 closed 2 months ago

passion3545 commented 4 months ago

domestika-downloader@1.0.0 start node index.js

Only these two lines are displayed after that the cursor blinks it doesn't download anything

Now I get this error after changing few things

node:internal/deps/undici/undici:12345 Error.captureStackTrace(err, this); ^

TypeError: fetch failed at node:internal/deps/undici/undici:12345:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchFromApi (C:\Users\domestika-downloader-main\domestika-downloader-main\index.js:151:22) at async scrapeSite (C:\Users\domestika-downloader-main\domestika-downloader-main\index.js:73:22) { cause: Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -4077, code: 'ECONNRESET', syscall: 'read' } }

Node.js v20.11.1

ReneR97 commented 4 months ago

Hey,

the 2 lines indicate that the program is running, try again without your modifications, sometimes it just takes a bit of time before it starts with the downloads. If it still errors out, just tell me and i will look into it

passion3545 commented 4 months ago

Is the credentials syntax correct {%22accessToken%22:%22xxxxxxxxccx%22%2C%22refreshToken%22:%22xxxxxxxxxxxxxxxxxxxxxxxxxx%22%2C%22isEmpty%22:false}

ReneR97 commented 4 months ago

yes, that should be good

passion3545 commented 4 months ago

ffmpeg i installed in c drive with path and also copied the bin folder to the domestika-downloader folder but i get the same above error.

Screenshot 2024-02-18 195710

4REMi commented 4 months ago

Hello! I have exactly the same problem as @passion3545

const response = await fetch(apiURL, {
                 ^

ReferenceError: fetch is not defined at fetchFromApi (C:\Users\rocash\Desktop\domestika-downloader-main\index.js:151:22) at scrapeSite (C:\Users\rocash\Desktop\domestika-downloader-main\index.js:73:28)

EDIT: My bad! I didn't have node Js version 18. That fixed it for me.

ReneR97 commented 3 months ago

ffmpeg i installed in c drive with path and also copied the bin folder to the domestika-downloader folder but i get the same above error.

Screenshot 2024-02-18 195710

Hey, i justed merge a pull request with a lot of improvements and fixes. Could you try redownloading everything and trying again? see if that fixes your problem.