Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't download Pro Courses #60

Open
imraj1997 opened this issue Sep 16, 2024 · 2 comments
Open

Couldn't download Pro Courses #60

imraj1997 opened this issue Sep 16, 2024 · 2 comments

Comments

@imraj1997
Copy link

Hello,

First of all, thank you so much for this tool. This is a life saver. ❤️

Now coming to the issue. When I tried to download one of the pro courses ( 3 | Amazon Elastic Compute Cloud (EC2) | Pro | AWS, Cloud, DevOps, Infrastructure as Code (IaC) )

I get the below error.

Enter the courses you want to select (Multiple courses can be passes using this format 1,6-9,10-11): 3
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Scripts\kodekloud.exe_main
.py", line 7, in
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\kodekloud_downloader\cli.py", line 69, in dl
download_course(
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\kodekloud_downloader\main.py", line 145, in download_course
response.raise_for_status()
File "C:\Users\usraj\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://learn-api.kodekloud.com/api/lessons/b3cb616c-f0bb-466a-a176-dabfdeef8616?course_id=ab9df08d-7087-491b-a398-b49f84de50b9

Any help on this would be highly appreciated.

@debakarr
Copy link
Owner

Do you have access to those courses? I mean do you have Pro plan.
AFAIK pro plan are not accessible even in Free Week.

Sadly I don't have the Pro plan so I couldn't try out the downloader for those :(

@Tisona
Copy link
Contributor

Tisona commented Sep 16, 2024

Pro courses are not free, even during the free week.
This is because Kodecloud has to provision AWS resources for the labs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants