No matter if I install the app from the Shopify partner dashboard using “Test app on development store” and clicking Install app or going manually to /auth?shop=example.myshopify.com I always get the error:
There was a problem loading this app
Please try opening or installing the app again.
and immediately I am automatically redirected to the grant permissions page:
If I accept the scopes, the app installs and everything works correctly.
Does anyone know what could be the error? My app has already been rejected 2 times (for other reasons) and I don’t want to be rejected again as they may suspend my account.
Regarding redirections, they happen as follows:
- Initial request to /auth?shop={shop}
Request URL: https://myserver.com/auth?shop=example-store.myshopify.com
Request Method: GET
Status Code: 302
- I’m redirected to /admin/oauth/authorize
Request URL: https://example-store.myshopify.com/admin/oauth/authorize?client_id=...&scope=...&redirect_uri=https://myserver.com/auth/callback&state=...&grant_options[]=per-user
Request Method: GET
Status Code: 302
- And redirected again to /admin/oauth/request_grant
Request URL: https://example-store.myshopify.com/admin/oauth/request_grant?access_change_uuid=...&client_id=...
Request Method: GET
Status Code: 200

