I have the following storefront GraphQL query that looks up a product info based on their handle:
query ($handle: String) {
product(handle: $handle) {
title
}
}
However, it’s giving me nothing, it was working fine last week.
Entering the same query and variables in the Shopify GraphiQL App set to storefront, I get the expected result:
So this means that it’s not the issue of the product not being published to the API.
Because of this, I assumed that the problem is the lack of permissions of the Storefront API Token. But checking the token using the storefront token list api (https://shopify.dev/docs/api/admin-rest/2024-01/resources/storefrontaccesstoken#get-storefront-access-tokens) gave me the following result:
{
"access_token": "====REDACTED=======",
"access_scope": "unauthenticated_read_content,unauthenticated_read_customer_tags,unauthenticated_read_product_tags,unauthenticated_read_product_listings,unauthenticated_write_checkouts,unauthenticated_read_checkouts,unauthenticated_write_customers,unauthenticated_read_customers",
"created_at": "2024-03-18T00:00:00Z",
"id": 90000000000,
"admin_graphql_api_id": "gid://shopify/StorefrontAccessToken/90000000000",
"title": "REDACTED"
}
Given that unauthenticated_read_product_listings is listed in the scope and my own app has read_products… It’s probably not the issue of the access scope.
I am currently stumped at this point, any ideas where I should be looking?

