aapatre / Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE

Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of web-scraping and automation, this script will find the necessary Udemy coupons & enroll you for PAID UDEMY COURSES, ABSOLUTELY FREE!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] HTTP error while loading existing course details

Voulz opened this issue · comments

commented

Everything was working great until a few weeks ago and I haven't been able to run udemy_enroller since.
I get an error:

Loading existing settings  
No cookie available  
Caching cookie for future use  
Loading existing course details  
HTTP error while trying to fetch Udemy information  
404 Client Error: Not Found for url: https://www.udemy.com/api-2.0/users/me/subscribed-courses/?ordering=-last_accessed&fields%5Bcourse%5D=@min,enrollment_time,published_title,&fields%5Buser%5D=@min&page=24&page_size=100  
Unable to fetch existing courses. Login was not successful  
Exception in redeem courses: 404 Client Error: Not Found for url: https://www.udemy.com/api-2.0/users/me/subscribed-courses/?ordering=-last_accessed&fields%5Bcourse%5D=@min,enrollment_time,published_title,&fields%5Buser%5D=@min&page=24&page_size=100

There seems to be an issue with this URL:
https://www.udemy.com/api-2.0/users/me/subscribed-courses/?ordering=-last_accessed&fields%5Bcourse%5D=@min,enrollment_time,published_title,&fields%5Buser%5D=@min&page=24&page_size=100
as it returns {"detail":"Invalid page."}
Interestingly, if I manually try to get the page 23 instead of 24, I get a proper response from the API {"count":2300,"next":null,"previous": ...}
We can also see that I have exactly 2300 enrolled courses, which is why the page 24 returns an error.
I'll have a look at the code when I get some time to try to understand why

Tests
Things I tried:

  • redownloading the repo
  • changing password
  • deleting the .cookie and the settings.yaml files
  • clearing the cookies and tomporary files from my computer

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: default

Same with me and I tried the same things you did, the problem is these days there's a lot of discounts that i don't wanna miss

Same Issue. Please resolve this.
image

I have also started to get this error, tried with 2 login account.