r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

Some weird connection errors happening only with certain courses #527

Closed Laiteux closed 3 years ago

Laiteux commented 3 years ago

Describe the bug When trying to download courses (I use cookies), some of them actually throw some errors. I can't really say what this is due to as I'm using a VPS to download (not a connection issue) and it only happens on certain courses. Some courses are totally fine, but some will keep throwing errors there and there when trying to download them, even after restarting the download process from the beginning.

To Reproduce Steps to reproduce the behavior:

  1. udemy course url: https://www.udemy.com/course/how-to-write-multi-threaded-csharp-code/
  2. Run the following command to reproduce the error: py udemy-dl.py https://www.udemy.com/course/how-to-write-multi-threaded-csharp-code/ -k cookies.txt
  3. See errors

Screenshots

Python Environment (please complete the following information):

Laiteux commented 3 years ago

Update:

So I tried restarting this course download once again, and noticed the errors are only happening on the lectures, not the assets or subtitles.

Logs: https://haste.laiteux.dev/doyzhyln

r0oth3x49 commented 3 years ago

try upgrading requirements. specialy requests[security] and requests

Laiteux commented 3 years ago

All packages are up-to-date.

r0oth3x49 commented 3 years ago

hmm, i can't reproduce the issue, the error seems more related to some sort of ssl issue, if you are okay sharing your creds i can try reproduce with the same course and fix ASAP

Laiteux commented 3 years ago

Hello,

I got this course refunded for some reason but will let you know if this ever happen again.

Closing this, for now.