Error: GraphQL error: ProductVariantUpdate access denied

Highlighted
New Member
2 0 0

This part of the tutorial links to this server.js file.

In the server.js file on Github, the scopes do not include 'write_products'.

(Just nothing that for anybody who may have copied/pasted the server.js file.

 

A proper fix is to ensure that in your server.js file you have both read and write scopes:

colshacol_0-1598566944784.png

 

0 Likes
Highlighted
Tourist
4 0 2

Logging out and back in to the development store didn't work for me. I had to delete the app from the dev store and reinstall it. You can see what permissions your app has by going to Apps in your dev store and select About to the right of the app.

The tutorial starts off with scopes: ['read_products'] and changes to scopes: ['read_products', 'write_products'] but the app permissions in Shopify don't seem to get updated when you change your code.

0 Likes