Open
Description
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Running shopify theme dev --store={store_url}
should synchronize the theme file in local environment into the target Shopify store's theme.
Actual behavior
It keep failing with no reason in its response. It may sometimes return the failure reason, but it is not something that is resolvable in our end.
Verbose output
user@1N49533:~/shopify-cam-theme-3$ shopify version
3.78.1
user@1N49533:~/shopify-cam-theme-3$ shopify theme dev --store=dev-compasia-2-0.myshopify.com
â•─ success ──────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Preview your theme (t) │
│ • http://127.0.0.1:9292 │
│ │
│ Next steps │
│ • Share your theme preview (p) [1] │
│ https://dev-compasia-2-0.myshopify.com/?preview_theme_id=143912829127 │
│ • Customize your theme at the theme editor (e) [2] │
│ • Preview your gift cards (g) [3] │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] https://dev-compasia-2-0.myshopify.com/?preview_theme_id=143912829127
[2] https://dev-compasia-2-0.myshopify.com/admin/themes/143912829127/editor?hr=9292
[3] http://127.0.0.1:9292/gift_cards/[store_id]/preview
• 14:25:20 Synced » update snippets/atc-bar.liquid
• 14:50:06 Synced » update snippets/atc-bar.liquid
â•─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Failed to upload file "snippets/atc-bar.liquid" to remote theme. │
│ │
│ request to https://dev-compasia-2-0.myshopify.com/?preview_theme_id=143912829127&_fd=0&pb=0 │
│ failed, reason: │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
â•─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Failed to upload file "snippets/atc-bar.liquid" to remote theme. │
│ │
│ request to https://dev-compasia-2-0.myshopify.com/?preview_theme_id=143912829127&_fd=0&pb=0 │
│ failed, reason: │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
user@1N49533:~/shopify-cam-theme-3$ ^C
user@1N49533:~/shopify-cam-theme-3$ ^C
user@1N49533:~/shopify-cam-theme-3$ ^C
user@1N49533:~/shopify-cam-theme-3$ shopify theme dev --store=dev-compasia-2-0.myshopify.com
â•─ success ──────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Preview your theme (t) │
│ • http://127.0.0.1:9292 │
│ │
│ Next steps │
│ • Share your theme preview (p) [1] │
│ https://dev-compasia-2-0.myshopify.com/?preview_theme_id=143912829127 │
│ • Customize your theme at the theme editor (e) [2] │
│ • Preview your gift cards (g) [3] │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] https://dev-compasia-2-0.myshopify.com/?preview_theme_id=143912829127
[2] https://dev-compasia-2-0.myshopify.com/admin/themes/143912829127/editor?hr=9292
[3] http://127.0.0.1:9292/gift_cards/[store_id]/preview
• 15:32:16 Synced » update snippets/atc-bar.liquid
• 15:32:34 Synced » update snippets/atc-bar.liquid
• 15:32:59 Synced » update snippets/atc-bar.liquid
• 15:36:59 Synced » update snippets/atc-bar.liquid
• 15:39:27 Synced » update snippets/atc-bar.liquid
• 15:39:52 Synced » update snippets/atc-bar.liquid
• 15:40:39 Synced » update snippets/atc-bar.liquid
• 15:41:48 Synced » update snippets/atc-bar.liquid
user@1N49533:~/shopify-cam-theme-3$ ^C
user@1N49533:~/shopify-cam-theme-3$ ^C
user@1N49533:~/shopify-cam-theme-3$ shopify theme dev --store=compasia-malaysia.myshopify.com
â•─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Failed to perform the initial theme synchronization. │
│ │
│ request to https://compasia-malaysia.myshopify.com/admin/api/2025-04/graphql.json failed, │
│ reason: │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
user@1N49533:~/shopify-cam-theme-3$ shopify theme dev --store=compasia-malaysia.myshopify.com
â•─ success ──────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Preview your theme (t) │
│ • http://127.0.0.1:9292 │
│ │
│ Next steps │
│ • Share your theme preview (p) [1] │
│ https://compasia-malaysia.myshopify.com/?preview_theme_id=140190449800 │
│ • Customize your theme at the theme editor (e) [2] │
│ • Preview your gift cards (g) [3] │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] https://compasia-malaysia.myshopify.com/?preview_theme_id=140190449800
[2] https://compasia-malaysia.myshopify.com/admin/themes/140190449800/editor?hr=9292
[3] http://127.0.0.1:9292/gift_cards/[store_id]/preview
â•─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Failed to perform the initial theme synchronization. │
│ │
│ request to https://compasia-malaysia.myshopify.com/admin/api/2025-04/graphql.json failed, │
│ reason: │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
user@1N49533:~/shopify-cam-theme-3$ shopify theme dev --store=compasia-malaysia.myshopify.com
â•─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Unknown error connecting to your store compasia-malaysia.myshopify.com: request to │
│ https://compasia-malaysia.myshopify.com/admin/api/unstable/graphql.json failed, reason: │
│ │
│ To investigate the issue, examine this stack trace: │
│ at fetchApiVersions (home/user/.nvm/versions/node/v20.16.0/lib/node_modules/@shop │
│ ify/cli/dist/index.js:204860) │
│ at processTicksAndRejections (node:internal/process/task_queues:95) │
│ at async supportedApiVersions (home/user/.nvm/versions/node/v20.16.0/lib/node_mod │
│ ules/@shopify/cli/dist/index.js:204850) │
│ at async fetchLatestSupportedApiVersion (home/user/.nvm/versions/node/v20.16.0/li │
│ b/node_modules/@shopify/cli/dist/index.js:204846) │
│ at async adminRequestDoc (home/user/.nvm/versions/node/v20.16.0/lib/node_modules/ │
│ @shopify/cli/dist/index.js:204827) │
│ at async passwordProtected (home/user/.nvm/versions/node/v20.16.0/lib/node_module │
│ s/@shopify/cli/dist/index.js:205121) │
│ at async dev (home/user/.nvm/versions/node/v20.16.0/lib/node_modules/@shopify/cli │
│ /dist/index.js:209279) │
│ at run (home/user/.nvm/versions/node/v20.16.0/lib/node_modules/@shopify/cli/dist/ │
│ index.js:209472) │
│ at _run (home/user/.nvm/versions/node/v20.16.0/lib/node_modules/@shopify/cli/dist │
│ /chunk-QAKYKTFV.js:175008) │
│ at runCommand (home/user/.nvm/versions/node/v20.16.0/lib/node_modules/@shopify/cl │
│ i/dist/chunk-QAKYKTFV.js:173833) │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
user@1N49533:~/shopify-cam-theme-3$ shopify theme dev --store=compasia-malaysia.myshopify.com
â•─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ request to https://compasia-malaysia.myshopify.com/?preview_theme_id=140190482568&_fd=0&pb=0 │
│ failed, reason: │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
Reproduction steps
- Execute
shopify theme dev
Operating System
Ubuntu 20.04.6 LTS
Shopify CLI version (shopify --version
)
3.78.1
Shell
No response
Node version (run node -v
if you're not sure)
v20.16.0
What language and version are you using in your application?
Liquid code