-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: theme dev always crashing instantly #5174
Comments
From your verbose logs, it seems like it's actually successfully being setup, then some connection breaks afterwards. There was a ticket a while ago where folks were being affected by Cloudflare re-routing. Seems like Tunisia is on the list of "Partially rerouted" https://www.cloudflarestatus.com/. |
@haythemblubolt have you managed to fix this issue? I also couldn't find a solution |
@ouDriss95 @aswamy I can see now that Tunis, Tunisia is Operational in Cloudflare service status page however I still have the same issue. I'm using the version 3.72.2 but as mentioned still with the issue. |
Hey @haythemblubolt , I was looking through your verbose logs to see if there are any issues around the theme. It seems like you have deleted it. Does this happen every time the command is run, or occasionally? I am trying to recreate the error on my system with little luck. @ouDriss95 Could you please run it with |
Hi @aswamy, Thank you for your response! As requested, here is the verbose output for the command 2025-01-22T09:34:58.640Z: Running command theme dev 2025-01-22T09:34:58.666Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store demodevtest.myshopify.com: 2025-01-22T09:34:58.667Z: Getting session store... 2025-01-22T09:34:58.674Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-01-22T09:34:59.211Z: Request to https://accounts.shopify.com/oauth/introspection completed in 534 ms
2025-01-22T09:34:59.219Z: The identity token is valid: true
2025-01-22T09:34:59.220Z: Getting development theme... With variables: With request headers:
to https://demodevtest.myshopify.com/admin/api/unstable/graphql.json
2025-01-22T09:34:59.774Z: Sending "Admin" GraphQL request: With variables: With request headers:
to https://demodevtest.myshopify.com/admin/api/2025-01/graphql.json
2025-01-22T09:35:00.875Z: Port 9292 is free
2025-01-22T09:35:02.148Z: Getting storefront password for shop demodevtest.myshopify.com...
2025-01-22T09:35:02.557Z: Setting storefront password for shop demodevtest.myshopify.com... 2025-01-22T09:35:02.561Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store demodevtest.myshopify.com: 2025-01-22T09:35:02.561Z: Getting session store... 2025-01-22T09:35:02.565Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-01-22T09:35:03.101Z: Request to https://accounts.shopify.com/oauth/introspection completed in 534 ms
2025-01-22T09:35:03.103Z: The identity token is valid: true
2025-01-22T09:35:03.104Z: Ensuring that the user is authenticated with the Storefront API with the following scopes: 2025-01-22T09:35:03.104Z: Getting session store... 2025-01-22T09:35:03.105Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-01-22T09:35:03.685Z: Request to https://accounts.shopify.com/oauth/introspection completed in 579 ms
2025-01-22T09:35:03.687Z: The identity token is valid: true
2025-01-22T09:35:03.969Z: Request to https://demodevtest.myshopify.com/?preview_theme_id=143805415589&_fd=0&pb=0 completed in 279 ms
2025-01-22T09:35:04.226Z: Request to https://demodevtest.myshopify.com/password completed in 255 ms
2025-01-22T09:35:04.450Z: Sending "Admin" GraphQL request: With variables: With request headers:
to https://demodevtest.myshopify.com/admin/api/2025-01/graphql.json ╭─ error ─────────────────────────────────────────────────────────────────────────────────────╮ 2025-01-22T09:35:04.758Z: Failed to perform the initial theme synchronization. |
@aswamy please find the full verbose log here |
Starting v 3.74 of the CLI, the theme synchronization code was changed. Could you upgrade your CLI and see if affects your
|
Hi @aswamy @haythemblubolt , Unfortunately, the issue with While I’m not entirely sure what’s causing the issue, I’m relieved to have found a workaround for now. Let me know if you have any insights or if there’s anything else I should try! Thanks |
Hey @ouDriss95 |
Hey @haythemblubolt Over the past four days, it kept breaking multiple times until I finally fixed it yesterday. However, this morning, it stopped working again, and I’m not sure what’s causing the issue. I’d really appreciate it if @aswamy could share his step-by-step process for working with Shopify CLI. It would be helpful to compare it with our workflow and see if we’re missing something. |
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
shopify theme dev
should be executed correctly from my local environment to run the Shopify theme locallyActual behavior
The
shopify theme dev
command fails with multiple errors (AggregateError, failed to sync with theme, etc...). I tried on 2 different computers, Windows and Linux, Node 16 18 and 20, downloaded latest and older versions of Shopify CLI package. I only got it working only a few times on a public Internet WIFI at a public place. I used 4G of multiple Internet providers but had the same issue. I'm not sure what to do else.shopify auth logout
andshopify theme pull
both work correctly but not the dev command.I also tried the following:
ngrok.txt
Verbose output
Verbose output
Check the output in this file
https://drive.google.com/file/d/1dX48gIK6ohVCqrpEGfkFmAbRcP3J3e8n/view?usp=drive_link
Reproduction steps
shopify theme dev
from my shell terminalOperating System
Windows 11 with Ubuntu 22.04.5 WSL v2 (tried also directly on Windows 11 but same outcome)
Shopify CLI version (
shopify --version
)3.72.2
Shell
No response
Node version (run
node -v
if you're not sure)20.12.1 (tried also with Node v18.0.0 and v16.0.0)
What language and version are you using in your application?
Javascript + Typescript
The text was updated successfully, but these errors were encountered: