Closed Matthaios closed 3 years ago
This is the query file from craft-debug but couldn't upload it so I just added .md extension to be able to upload it here.
Appreciate it! Can you copy/paste all that into the Craft's GraphiQL IDE and execute the LIST query? What are the results?
Ideally, please select the same schema in the IDE that you're using for Gatsby.
I get this:
{
"errors": [
{
"message": "No GraphQL query was supplied"
}
]
}
Huh. That one is thrown by Craft if there is no query provided. This sounds like an environmental issue with POST being redacted or something? What's your hosting environment?
Hm... I'm the frontend dev on the project. Will wait for the backend dev if he can provide details.
The problem seems to have been with the Apache server configuration and us exceeding the post request size config.
Hope this helps anyone else! :)
I have the same problem with running gatsby develop. I've got the newest version of Craft (3.6.16), PHP version on server - 7.3.23, gatsby-source-craft plugin version - 2.0.2. Errors which occur:
ERROR #85901 GRAPHQL There was an error in your GraphQL query: Unknown type Craft_... (the same error for every single node)
ERROR #85923 GRAPHQL There was an error in your GraphQL query: Cannot query field "allCraftCookiesGlobalSet" on type "Query".
It seems that gatsby develop command finishes but I get page without data from CMS and there are no nodes with data. Any ideas?
@szymonStawowy94 so many questions.
Closing this as the original issue has been solved.
Description
I get errors when trying to local develop and I don't get any nodes back. All fields are checked in Craft so that shouldn't be the problem that the nodes are not getting back.
Steps to reproduce
Additional info