Search code examples
shopifyshopify-app

Expected a valid shop query parameter


I'm trying to create new Shopify app using shopify-app-cli, I set up all redirect links and .env file, but when I run Shopify serve and when it says Ready on http://localhost:8081, I go to localhost page and it shows this error: Expected a valid shop query parameter. What does it mean?

I checked my .env file for maybe typos, but everything is copied fine.


Solution

  • That mean you have miss yourshopname.myshopify.com . This needed when you authenticated your app.

    https://yourshopname.myshopify.com/admin/oauth/authorize?client_id='your_api_key'&scope='your_scopes_require'&redirect_uri='your_redirect_url'
    

    For more information read here