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

Display more informative error message for closed courses #39

Open
cliu587 opened this issue Nov 20, 2016 · 0 comments
Open

Display more informative error message for closed courses #39

cliu587 opened this issue Nov 20, 2016 · 0 comments

Comments

@cliu587
Copy link
Contributor

cliu587 commented Nov 20, 2016

When users attempt to use clickstream export with the command
courseraresearchexports jobs request tables --course_slug COURSE_SLUG ... when COURSE_SLUG is a closed course, we try to translate the course slug to course id using https://www.coursera.org/api/onDemandCourses.v1/?q=slug&slug=COURSE_SLUG.

We use the unauthenticated version of this API because we do not have access to the user's Coursera cookies when making this request. For closed courses, this request returns an error.

We should document this potential issue and provide an alternative (hit the API in your browser, and request with courseraresearchexports jobs request tables --course_id ...).

Ideally we will be able to open the above API with OAuth2 as well and not need this workaround.

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

1 participant