-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access denied when using GQL urlRedirects even though read_content scope was added #845
Comments
I am able to replicate this and it is odd, it may be a bug in the gql api rather than this application. Very good replication steps, thanks. Either the redirect requires a different undocumented scope, or the gql api is interpreting the scopes incorrectly. That's the only 2 ways I think you would get a 403 back from gql with the correct scopes |
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days. |
We are closing this issue because it has been inactive for a few months. If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines Thank you! |
Hi there, this issue is still very much open, above query still does not work in GQL. |
@Michael-Gibbons I'm not sure if you're still watching this, but this is still an issue as of 2024-02. |
Hi, Still an issue as of 2024-04. Is there a workaround ? |
The |
Issue summary
shopify app create node
to create a new public appurlRedirects
after updating.env
to includeread_content
as per documentation.undefined
but if you query using Admin REST instead, then it's fineExpected behavior
Expected to receive
nodes
ofURLRedirect
Actual behavior
After inspecting network requests, got a 200 but response with an error of
Access Denied
I've console logged my dev store on
server/index.js
to see what the access scope is and got the following which included theread_content
But to make sure, I've also ran an
app
GQL query to see what therequestedAccessScopes
were but strangely got an empty array.Here's the error from making a GQL urlRedirects query
Steps to reproduce the problem
shopify app create node
.env
to addread_content
toSCOPES
shopify app serve
and add the app to a dev storeProductsCard
with the create 5 products mutation.Online Store -> Navigation -> View URL redirects
ProductsCard
or anywhere really...nodes
but the actual response should beundefined
withAccess Denied
on network requestAdditional Information
If you do the same thing but use the REST API instead, then it works but I prefer GQL - lol.
Add the following.
Add to server/index.js
Add to ProductsCard or anywhere
On refreshing the app and checking console
The response but I've removed some privacy sensitive stuff and you can see the one redirect I've set up at the bottom.
Reduced test case
Just the above through creating a fresh node public app
Specifications
The text was updated successfully, but these errors were encountered: