OAuth Permission Asking showing shop not available (Public App with development store)

vincentwee
New Member
2 0 0

I recently created a public app (not published yet), and a development store to test the app and the API.

When I use the API call GET method

https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode}

to ask for OAuth permission for my development store following the steps in https://shopify.dev/tutorials/authenticate-with-oauth (step 2), instead of getting the prompt, I get a full page that said "Sorry, this store is not available". 

Screenshot 2021-05-19 at 11.50.33 AM.png

When I test the same function with an actual store I get this, which is correct since the app is not published yet.

Screenshot 2021-05-19 at 11.51.42 AM.png

Can anyone enlighten me whether this is a bug or is there some missing steps / steps not done properly on my side?

0 Likes
vincentwee
New Member
2 0 0

I'm not sure if this is supposed to work this way, but I managed to manually install the app to the development store from the admin's page.

I still doesn't work when I tried to let user click on a link from my website and call the GET access token API, which my webpage will still be redirected to that page with the message "Sorry, this shop is currently unavailable."

The API works from whatever button that triggers any API action calls from my website after the app is installed.

This is the first time I'm dealing with Shopify, so I'm a little confused.

Is it because the app is not published that I can't retrieve the access token of the development store from my website?

0 Likes