• Resolved padawan2602

    (@padawan2602)


    So i have build an Gatsby Website using graphql to extract data from the old website so that i will not be needed to move all that data ( post / pdfs / imgages etc..) manually, anyway. It worked good so far but from yesterday after i update my Node the website stop communicating with the WordPress GraphQL, when i want to access the GraphQL link i keep getting this error and dont know why. It’s not even working on my local wordpress anymore. Same error there too.

    {“errors”:[{“message”:”GraphQL Request must include at least one of those two parameters: \”query\” or \”queryId\””,”extensions”:{“category”:”request”}}],”extensions”:{“debug”:[{“type”:”DEBUG_LOGS_INACTIVE”,”message”:”GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled.”}]}}

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter padawan2602

    (@padawan2602)

    I think it has something to do even with the graphql update.

    I too have recently started having a graphql error from an application that was previously working fine. Entering the query into the graphiQL IDE gives expected result, but the React/Appollo application is now giving this error:

    “Cannot query field \”indicator_categoryId\” on type \”Indicator_category\”. Did you mean \”indicatorCategoryId\” or \”indicatorColor\”?”

    Tried downgrading WPGraphQL plugin to version 1.6 and 1.12 – but the error persists so suggest some other environmental change has happened!

    Plugin Author Jason Bahl

    (@jasonbahl)

    @padawan2602 the error:

    
    {“errors”:[{“message”:”GraphQL Request must include at least one of those two parameters: \”query\” or \”queryId\””,”extensions”:{“category”:”request”}}],”extensions”:{“debug”:[{“type”:”DEBUG_LOGS_INACTIVE”,”message”:”GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled.”}]}}
    

    Is standard behavior and has been for many years. If you visit the /graphql endpoint without passing a query or queryId. You need to pass a query to the url to get a response for a query.

    That said, there have been some issues with Gatsby and the WPGraphQL v1.13 release.

    Those issues are tracked here: https://github.com/gatsbyjs/gatsby/issues/37114

    —-

    @twobyte thanks for opening the issue on Github! For anyone else that runs into this, that issue referenced is here: https://github.com/wp-graphql/wp-graphql/issues/2666 and will be fixed in today’s (Dec 9, 2022) release

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘GraphQL not working’ is closed to new replies.