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

[Bug]: 403 Forbidden, 'NoneType' object has no attribute 'content' #126

Closed
Zeddex opened this issue Jul 15, 2022 · 6 comments
Closed

[Bug]: 403 Forbidden, 'NoneType' object has no attribute 'content' #126

Zeddex opened this issue Jul 15, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Zeddex
Copy link

Zeddex commented Jul 15, 2022

What happened?

Got this error, but in the browser this link works good
https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=mycourse

Expected Result

Download a course

Branch

master/main

What operating systems are you seeing the problem on?

Windows

Relevant log output

[12:53:17] [udemy-downloader] [__init__:287] INFO: Login Success
[12:53:17] [udemy-downloader] [main:1467] INFO: > Fetching course information, this may take a minute...
[12:53:17] [udemy-downloader] [_get:804] ERROR: Failed request https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=mycourse
[12:53:17] [udemy-downloader] [_get:805] ERROR: 403 Forbidden, retrying (attemp 0 )...
...
[12:53:27] [udemy-downloader] [_subscribed_courses:551] CRITICAL: Udemy Says: 'NoneType' object has no attribute 'content' on https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=mycourse

Other information

No response

@Zeddex Zeddex added the bug Something isn't working label Jul 15, 2022
@Puyodead1
Copy link
Owner

failed to authenticate, did you edit the config and put in your username and password?

@Zeddex
Copy link
Author

Zeddex commented Jul 16, 2022

It shows "Login Success". I can't find where should I put my username and password in config file. I just use .env file with my bearer token.

@Puyodead1
Copy link
Owner

ah, I didn't see you were using the master branch. is this for a subscription course through udemy personal or pro plans?

@Zeddex
Copy link
Author

Zeddex commented Jul 16, 2022

It is a common account, not pro and without subscriptions.

@Puyodead1
Copy link
Owner

are you sure your token is not expired? try getting a new one

@Zeddex
Copy link
Author

Zeddex commented Jul 17, 2022

After relogin it works. Thanks.

@Zeddex Zeddex closed this as completed Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants