FROM CACHE - en_header

Theme Extension App Problems

HunkyBill
Shopify Expert
4793 56 562

With specific reference to this: https://shopify.dev/apps/online-store/theme-app-extensions/getting-started#step-1-log-in-to-your-par...

I have a Shopify App that now I want to embed some theme app extensions. So I try the CLI command shopify login which fires up a browser window, asking me to authenticate. I do, and the browser tells me Great! You're in, and you can close this window now. So I do, as I am used to this pattern from other services.

However, the CLI responds with a cryptic message.

An unexpected error occurred on Shopify.
It doesn't appear that you're logged in. You must log into a partner organization or a store staff account.

So that is kinda interesting. Since this CLI App is needed to setup theme extensions, and I cannot login, what am I supposed to do? What is up with this system Shopify? I am using version 2.6.6 of the Shopify CLI codes.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Reply 1 (1)
sbdev
Shopify Partner
48 0 6

  

Hello @HunkyBill ,

We are trying to create a theme app extension. For that, we have installed Shopify CLI or our shared hosting / live server.
When I run "Shopify login" it gives me the URL to run on the browser.

Reference: https://prnt.sc/23yx1fa

After visiting this URL it shows up my Shopify accounts but when I select the account we land on an URL starting from "127.0.0.1"
and we get this issue.

Reference: https://prnt.sc/23yxg77

This issue only occurs when I do this from my shared hosting, However, I have Shopify CLI in my windows 10, and when I do this for the local environment. It works like a charm. Kindly help me to solve this so that I can take up the Shopify CLI on the server.