Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

GraphQL query returns { "errors": "Not Found" }

GraphQL query returns { "errors": "Not Found" }

safwanadnan
Shopify Partner
13 0 0

I am writing this query: 

query {
  products(first: 10, reverse: true) {
    edges {
      node {
        id
        title
        handle
        resourcePublicationOnCurrentPublication {
          publication {
            name
            id
          }
          publishDate
          isPublished
        }
      }
    }
  }
}

 

This works fine for my test store but the exact same query for my actual store throws the following error:

{
    "errors": "Not Found"
}

I tried multiple different queries, all returned the same error, I checked all access scopes and access key everything is in the right place, still I get such a vague error.

 

Here's the actual store returning the error:

safwanadnan_0-1722938556965.png

 

Here's the exact same query with my test store, everything else is exactly the same yet it works here:

safwanadnan_1-1722938666745.png

 

Please help me GraphQL simply doesn't work for me.

Replies 11 (11)

Liam
Community Manager
3108 344 909

On your actual store, can you install the GraphiQL app, and test the query with that? It's possible that there's an issue on Postman's side? 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

safwanadnan
Shopify Partner
13 0 0

Yes works fine on the GraphiQL app but this query doesn't work on postman or using python to send requests. Both the other methods however work perfectly fine on the test store however

Kyle_liu
Shopify Partner
421 53 76

Hi @safwanadnan 

 

What information does this yellow symbol indicate

 

Kyle_liu_0-1723104441630.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
safwanadnan
Shopify Partner
13 0 0

I have no clue what this is, maybe this is whats causing the error, can you help me fix it?

 

Kyle_liu
Shopify Partner
421 53 76

 

Like me, take a screenshot and send it out

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
safwanadnan
Shopify Partner
13 0 0

safwanadnan_0-1723110239644.png

 

Liam
Community Manager
3108 344 909

Hi again Safwanadnan - it does sound like authorisation may not be set up correctly to make calls to the actual store.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

safwanadnan
Shopify Partner
13 0 0

Can you suggest any solution, since the access token is correct to say the lease, otherwise it returns a different error and I have allowed all scopes as well, the headers are also the ones which are given in the documentation, what else am I missing?

 

Kyle_liu
Shopify Partner
421 53 76

Hi @safwanadnan 

 

 

In this picture, there are 10 headers. Can you share what they are? Mosaic sensitive data

 

Kyle_liu_0-1723165282566.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
safwanadnan
Shopify Partner
13 0 0

safwanadnan_0-1723190005451.png

Here is my header field, I erased the access token now but it was present in the original request.

mayuur
Visitor
1 0 0

Check the Postman console you'll see some get API after your post API call use the base URL same as get API and it should work.