Shopify CLI unresponsive after entering commands

For the past two days (December 10th-11th, 2024) Shopify CLI commands seem to hang after they are entered, meaning nothing happens. This was happening on the previous version I had installed (3.6x something) as well as the most recent version (3.72.0). I notice it the most with the “shopify app dev” and “shopify theme dev” commands. Sometimes I have to try the command 10+ times before it works. I’ve tried waiting after entering the commands, to see if it is just really slow, but even 10 minutes later, nothing has happened.

Has anyone else noticed this? Is it possible it is related to Winter editions changes?

Getting some details of the command with the --verbose flag would be helpful in debugging!

2024-12-11T23:05:05.045Z: Running command theme dev
2024-12-11T23:05:05.053Z: Notifications to show: 0
2024-12-11T23:05:05.061Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-12-11T23:05:05.061Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store pepetools.myshopify.com:
[]

2024-12-11T23:05:05.061Z: Getting session store...
2024-12-11T23:05:05.063Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
  "adminApi": {
    "scopes": [],
    "storeFqdn": "pepetools.myshopify.com"
  }
}

2024-12-11T23:05:05.064Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-12-11T23:05:05.064Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.72.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

This is what the verbose output is when the command hangs. For reference, “shopify theme dev” worked properly the first time, and then when I ended it and tried again, I got this. So the issue seems intermittent.

Thanks! It kind of looks like the request to https://accounts.shopify.com/oauth/introspection is hanging for you. Oddly it should at the very least timeout and fail after 30 seconds so this is peculiar! I’ll check with the team to see if anyone knows what might be happening.

1 Like

Hi Alex

Couple of Qs to help narrow this down:

  • Are you seeing this issue every time you run see CLI commands? Or often/sometimes?
  • Is the issue present when working on other networks or with changes such as disabling any VPN software?

Thank you –

Hi Shaun,

It doesn’t always happen. Often it will work for a bit, then there will be periods (5-10 min or so) where I get this response any time I try to run the command. And also, like I mentioned, this has just been happening the last few days, and I have used it every workday for the last year or so probably.

This is the only network I work on at the moment, but I don’t have any VPN software running and I have not noticed any connectivity issues outside of this issue.

Edit: Additionally, I noticed today that while working on a development theme via “shopify theme dev --theme-editor-sync” I got an error that said something along the lines of “Failed to refresh session”, at which point I could no longer load the local host url. I exited the process and ran “shopify theme dev --theme-editor-sync” again, and it worked fine. I don’t have a problem occasionally restarting the process this way, but figured the more data you have the better.

Hi guys,

I’m having trouble deploying my update theme extension app using Shopify CLI.

On December 10th, 2024, I successfully deployed my code to the theme extension for my app. However, on December 12th, I was unable to do so. I also tried to run some basic functions in Shopify CLI, but I still received error messages.

I believe these messages indicate that my Shopify CLI cannot connect to the Shopify server. I made sure that I am not using any proxy or VPN.

I’ve attached my screenshot for reference.

I hope someone can assist me with this issue. Thank you!

I saw you opened a topic elsewhere. Someone will reply there.

@Alex_Moser The next time this occurs, could you try visiting accounts.shopify.com (it’s the login screen). That’ll help isolate where the issue lies. I dug around the request logs from the timing of your past screenshot and hadn’t found anything, which makes me wonder if the issue is connectivity/availability related.

@Shaun_Stanworth I don’t have any issue accessing accounts.shopify.com either via browser or by running $ ping accounts.shopify.com in terminal. Tried both several times, and even had a separate terminal running the ping command while trying to run “shopify app dev” a couple times. No failed pings, 0% packet loss.

@Shaun_Stanworth This seems to be (tentatively) happening less frequently now. If others aren’t reporting similar issues, I must assume the issue is on my end, though perhaps some better error recovery would be beneficial for Shopify CLI. Please let me know if you find anything else, or if others have reported anything similar, but since it seems you have done all you can to investigate from your end, we can consider this issue closed for now. Thanks for your help.