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.

Storefront "query" field not returning results for any query

Storefront "query" field not returning results for any query

CollagerieTech
Shopify Partner
4 0 2

We have noticed that in a number of our queries using the Storefront API that the "query" variable simply doesn't work and returns no results. Shopify Support have acknowledged the issue on 3 occasions over the last couple of days but provided no update.

 

Query variable would look like so:

 

"variables":{"first":20,"sortKey":"ID","query":"variants:['sku:dress'] OR title:dress","reverse":true}

 

Screenshot 2023-07-04 at 12.18.49.png

 

in the Shopify UI we get back results

Screenshot 2023-07-04 at 12.17.47.png

In our API call we get back nothing

Screenshot 2023-07-04 at 12.18.39.png

The API token has all available scopes.

 

We have also noticed SIGNIFICANT delays in Shopify's search indexes over the last couple of weeks/month, in which products simply do not show for hours if not days. 

 

How do we get this matter resolved ASAP.

Replies 10 (10)

Igor89
Shopify Partner
5 0 1

We're experiencing the same issue on our end!
It just stopped to work.


Query:

{
  products(first: 250, query:"") {
    edges {
      cursor
      node {
          id
          title
      }
    }
  }
}

 

The response is always empty

{ "data": { "products": { "edges": [] } } }

Igor89
Shopify Partner
5 0 1

But what I've discovered is that this scheme actually returns results.
While I am still waiting for a response from the Shopify team, I am considering making the switch to this alternative in the meantime.

 {
  search(query: "r", first: 10, types: PRODUCT) {
    edges {
      cursor
      node {
        ... on Product {
          id
          title
        }
      }
    }
  }
}
CollagerieTech
Shopify Partner
4 0 2

Hey @Igor89 The biggest issue here is apps for other platforms as a result are no longer working. Contentful has a Shopify app and it simply doesn't work because of this issue. It isn't a Contentful issue it is a shopify API issue so for things outside of our control there is no workaround until it is fixed on Shopifys end.

_JCC_
Shopify Staff
200 27 56

Hey @Igor89 has support been contacted yet. I know @CollagerieTech has and if we're looking at the same problem I'd like to make sure all instances are properly recorded. 

John C | Developer Support @ 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

Igor89
Shopify Partner
5 0 1

Hey @_JCC_  I reached out to support yesterday via email.

Just a quick update:
I've noticed that the problem only occurs on my EU servers, whereas everything is functioning perfectly on my US  servers.

_JCC_
Shopify Staff
200 27 56

Thanks @Igor89 . Could you share the ticket number with me.

John C | Developer Support @ 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

Igor89
Shopify Partner
5 0 1

Sure thing!
39699927

MrTakoyaki
Shopify Partner
1 0 0

It happens here too, the weird part is, It does work on Shopify GraphiQL App inside shopify, but via postman or any other way, it does not.

_JCC_
Shopify Staff
200 27 56

Hey @MrTakoyaki has support been contacted yet. I know @CollagerieTech has and if we're looking at the same problem I'd like to make sure all instances of the same issue are properly recorded.

John C | Developer Support @ 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

_JCC_
Shopify Staff
200 27 56

Hey Everyone 👋. The issue originally brought up by @CollagerieTech should be resolved.

John C | Developer Support @ 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