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

playlist throwing a server error because of malformed graphql query #229

Closed
joelhooks opened this issue Dec 21, 2020 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@joelhooks
Copy link
Contributor

https://next.egghead.io/playlists/mdx-conf-3fc2

Need to investigate what's missing here. Summary vs description is my gues

RuntimeError: Failed to implement GenericResource.description, tried: - 
`Types::Resources::GenericResource#description`, which did not exist - 
`Lesson#description`, which did not exist - Looking up hash key `:description` 
or `"description"` on `Demystifying MDX`, but it wasn't a Hash To implement 
this field, define one of the methods above (and check for typos)
{
  "query" => "\n query getPlaylist($slug: String!) {\n playlist(slug: $slug)
 {\n slug\n title\n description\n image_thumb_url\n square_cover_480_url\n 
average_rating_out_of_5\n rating_count\n watched_count\n path\n primary_tag {\n 
name\n image_url\n slug\n }\n items {\n ... on 
Course {\n slug\n title\n summary\n description\n path\n square_cover_url\n type\n }\n ... 
on Playlist {\n slug\n title\n description\n path\n square_cover_url\n type\n url\n lessons 
{\n title\n path\n slug\n icon_url\n }\n }\n ... on Lesson {\n slug\n title\n description\n 
path\n http_url\n icon_url\n type\n }\n ... on File {\n slug\n title\n url\n description\n 
square_cover_480_url\n square_cover_url\n type\n }\n ... on Download {\n slug\n title\n url\n 
summary\n description\n square_cover_480_url\n square_cover_url\n type\n }\n ... 
on Url {\n title\n url\n description\n square_cover_480_url\n square_cover_url\n type\n }\n ... 
on GenericResource {\n title\n url\n description\n square_cover_480_url\n 
square_cover_url\n type\n }\n }\n instructor {\n id\n full_name\n slug\n avatar_url\n 
avatar_64_url\n bio_short\n twitter\n }\n owner 
{\n id\n full_name\n avatar_url\n }\n }\n }\n ",
  "variables" => {"slug" => "mdx-conf-3fc2"},
  "controller" => "graphql",
  "action" => "execute",
  "graphql" => {
    "query" => "\n query getPlaylist($slug: String!) {\n playlist(slug: $slug) {\n slug\n 
title\n description\n image_thumb_url\n square_cover_480_url\n average_rating_out_of_5\n
 rating_count\n watched_count\n path\n primary_tag {\n name\n image_url\n slug\n }\n
 items {\n ... on Course {\n slug\n title\n summary\n description\n path\n square_cover_url\n type\n 
}\n ... on Playlist {\n slug\n title\n description\n path\n square_cover_url\n type\n url\n lessons
 {\n title\n path\n slug\n icon_url\n }\n }\n ... on Lesson {\n slug\n title\n description\n path\n 
http_url\n icon_url\n type\n }\n ... on File {\n slug\n title\n url\n description\n
 square_cover_480_url\n square_cover_url\n type\n }\n ... on Download {\n slug\n title\n url\n 
summary\n description\n square_cover_480_url\n square_cover_url\n type\n }\n ... 
on Url {\n title\n url\n description\n square_cover_480_url\n square_cover_url\n type\n }\n ... 
on GenericResource {\n title\n url\n description\n square_cover_480_url\n 
square_cover_url\n type\n }\n }\n instructor {\n id\n full_name\n slug\n avatar_url\n avatar_64_url\n 
bio_short\n twitter\n }\n owner {\n id\n full_name\n avatar_url\n }\n }\n }\n ",
    "variables" => {"slug" => "mdx-conf-3fc2"}
  }
}
@joelhooks joelhooks added the bug Something isn't working label Dec 21, 2020
@joelhooks joelhooks added this to Needs triage in egghead dev via automation Dec 21, 2020
egghead dev automation moved this from Needs triage to Closed Dec 29, 2020
@joelhooks joelhooks removed this from Closed in egghead dev Dec 13, 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

1 participant