Closed gg4u closed 4 years ago
Found a solution to the problem, which was a mismatched by a declared header at added line 166 ( see comment https://github.com/coursera-dl/edx-dl/issues/468#issuecomment-395139398 ) : added line opener.addheaders = [('User-agent', 'Mozilla/5.0')]
and the header used in edx_get_headers()
:
make sure you use the same User-agent, otherwise the user agent in the first token will mismatched with future requests.
Can't download - Too many requests - http 429
steps to reproduce
edx-dl -u user@user.com -p **** --list-courses
429 - too many requests
.edx-dl -u user@user.com --listcourses
and see I now get also a 429 error.I wonder if the credentials are not blocked by the backend.
See trace below:
Edit
I also noticed this strange behaviour:
edx-dl -u user@user.com -p **** --list-courses
will list the courses, OKedx-dl -u user@user.com -p **** COURSE_URL
> error 403edx-dl -u user@user.com COURSE_URL
> error 429edx-dl -u user@user.com -p **** --list-courses
> error 429