ResourcePicker "error: Access Denied" on certain stores

Highlighted

Hello,

 

Recently I've been getting an error on a certain number of stores using my app.

 

So I've been getting this error when attempting to search a store's inventory for products:

Screen Shot 2019-10-20 at 10 40 35 PM

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:

  1. I receive this Toast error message

Screen Shot 2019-10-20 at 10 40 40 PM

  1. I receive this error message in the console
    Uncaught Error: GraphQL error: access denied

Screen Shot 2019-10-20 at 10 40 49 PM

 
 
Check out our newest app Daily Deals: https://apps.shopify.com/daily-deals-6
0 Likes
Shopify Staff
Shopify Staff
176 26 28

Hey @Conner_Pope,

 

Are you able to provide a request ID?

0 Likes
Hi Scott,

Where can I find the request ID?
Check out our newest app Daily Deals: https://apps.shopify.com/daily-deals-6
0 Likes
Shopify Staff
Shopify Staff
176 26 28

Hey @Conner_Pope,

 

You can find it in the response headers:

 

22-49-fwqyh-o1ors


(Please provide an ID of a request that hits the access denied issue)

0 Likes

Hi @scottydont , here's the request ID: 78b07770-d34a-4752-91e6-f80779ac9a06

Check out our newest app Daily Deals: https://apps.shopify.com/daily-deals-6
0 Likes
Shopify Staff
Shopify Staff
176 26 28

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).

0 Likes