craftcms / shopify

Synchronize and extend product data from your Shopify storefront.
MIT License
45 stars 25 forks source link

Webhooks settings page gives a REST request failed on load after adding API keys #89

Closed mdominguez closed 9 months ago

mdominguez commented 9 months ago

Description

I've created a Shopify app following the steps in the README. Also configured the correct Admin API access scopes (read_products, read_product_listings, read_inventory). Put the Webhook subscriptions -> Event version on 2023-10. Retrieved the API access token, API key, Secret key, Store Hostname, and added them in my .env following by adding those env variables to the Settings of the Shopify plugin.

Furthermore when trying to access the Webhooks tab, I get a REST request failed error, with status code 301. Screenshot

Any idea what could be the issue that's causing this? I followed exactly all the steps in the readme :/

The account I created the app with is a staff member account, not the store owner account, but this staff member account has permissions to create Shopify apps and add the read_products, read_product_listings and read_inventory access scopes as I just did, so don't think it's the account.

Thx in advance!

Additional info

mdominguez commented 9 months ago

Damn, I changed the hostname to the secondary domain from Shopify (1bfea9-5.myshopify.com) instead of the name-of-the-shop.myshopify.com domain and it works now, don't know why