Hello Shopify Community,
I’ve encountered a perplexing issue while trying to update the access scopes for my application across different deployment environments (dev, staging, production). Here’s a detailed breakdown of the problem:
- My production app, which is already live and listed in the Shopify store, needed a new feature that requires the read_customers scope.
- To test this, I added the rule to the access_scopes in the config for my staging version and pushed these changes using the Shopify CLI.
- Despite these updates, Shopify keeps responding that I lack the necessary access for the read_customers scope in my staging environment, although the process seemed to succeed without errors.
Here are the steps I followed:
- Ran npm run shopify app config link, selected my organization and app version, which created the shopify.app.staging.toml file.
- Executed npm run shopify app config push – --config staging and reinstalled the app.
- No errors were reported, and I verified that the altered data is being fetched.
Notably, the dev version of the app doesn’t have this problem, and the required scope shows up correctly in the app settings in the Shopify store.
I’m trying to understand why the scope update is not reflecting correctly for the staging environment despite following the necessary procedures. Is there something I’m missing in the update process, or could this be an issue with the Shopify platform or CLI?
Any insights, suggestions, or similar experiences are welcome. Thank you in advance for your help!
