Hey @Conner_Pope,
You can find it in the response headers:
(Please provide an ID of a request that hits the access denied issue)
Hi @scottydont , here's the request ID: 78b07770-d34a-4752-91e6-f80779ac9a06
Thanks @Conner_Pope. This appears to be caused by your account lacking permissions (in this case the store owner hasn't given you access to Products).
Subject | Author | Latest Post |
---|---|---|
Subject | Author | Posted |
---|---|---|
3 hours ago | ||
3 hours ago | ||
3 hours ago | ||
5 hours ago | ||
5 hours ago |
User | Count |
---|---|
257 | |
165 | |
134 | |
67 | |
38 |
So I've been getting this error when attempting to search a store's inventory for products:
Note that this was returning results as recently as yesterday.
Here is the response I'm getting for the request being made to /admin/internal/web/graphql/core
{"data":null,"errors":[{"message":"access denied","locations":[{"line":4,"column":5}],"path":["shop","collections"]}],"extensions":{"cost":{"requestedQueryCost":103,"actualQueryCost":0,"throttleStatus":{"maximumAvailable":5000.0,"currentlyAvailable":5000,"restoreRate":250.0}}}}
and here is the request being made
{"operationName":"CollectionResourcePicker","variables":{"searchQuery":"","hasPublicationId":false,"publicationId":null,"first":50},"query":"query CollectionResourcePicker($first: Int!, $searchQuery: String = \"\", $after: String, $hasPublicationId: Boolean = false, $publicationId: ID = \"gid://shopify/Publication/0\") {\n shop {\n id\n collections(first: $first, query: $searchQuery, after: $after, sortKey: TITLE) {\n edges {\n cursor\n node {\n ...CollectionResourceDisplay\n publishedOnPublication(publicationId: $publicationId) @include(if: $hasPublicationId)\n __typename\n }\n __typename\n }\n pageInfo {\n hasNextPage\n __typename\n }\n __typename\n }\n __typename\n }\n}\n\nfragment CollectionResourceDisplay on Collection {\n id\n title\n image {\n altText\n transformedSrc(maxWidth: 200, maxHeight: 200)\n __typename\n }\n __typename\n}\n"}
Now, when I attempt to search for a specific product, the following happens:
Uncaught Error: GraphQL error: access denied