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

unable to download due to graphql query issue #184

Closed
mssrivatsa opened this issue Jan 15, 2021 · 1 comment
Closed

unable to download due to graphql query issue #184

mssrivatsa opened this issue Jan 15, 2021 · 1 comment

Comments

@mssrivatsa
Copy link

First of all, huge thanks for creating this awesome tool!

Describe the bug

I am surprised no one else reported this issue yet.

I tried to use download command and encountered the error below with multiple nanodegrees.

2021-01-15T10:39:24.723Z [info]: Start downloading Nanodegree xxxx from Udacity API
✔ Get Nanodegree xxxx information
2021-01-15T10:39:25.027Z [info]: You're authorized to download version 1.0.0, locale en-us of Nanodegree xxxx
✖ Get Nanodegree xxxx information
2021-01-15T10:39:25.115Z [error]: Failed to download course. See error below:
[
{
"message": "Cannot query field "part_keys" on type "Cohort".",
"status": null
},
{
"message": "Cannot query field "part_keys" on type "NDUnit".",
"status": null
}
]

I tried with both old and new nanodegree IDs I had access to and had no luck with the download. I suspected a change in graphql schema of udacity nanodegree content and did the following to resolve the issue.

FIX

Downloaded the source and modified src/api/fetchNanodegree to delete part_keys from the graphql query in both cohort and ndunit. I am able to download the nanodegree locally after building the changed source.

Please update the src/api/fetchNanodegree to resolve this issue. Thanks!

@mssrivatsa
Copy link
Author

This is a duplicate of #183

Marking this as closed.

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