Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
423 stars 126 forks source link

[Bug]: `shopify theme dev` extreamly slow sync and navigation within localhost. #4277

Closed muchisx closed 2 months ago

muchisx commented 2 months ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

To work with fast syncs of the theme with the development theme, navigations and fast hmr.

Actual behavior

file syncs, navigations on localhost and hmr are extreamly slow (2-8min for changes) Recording 2024-08-06 205828-1.webm

https://github.com/user-attachments/assets/44e0abf8-d99f-45b8-adfe-13fbe1f48a2e

Related forum posts: https://community.shopify.com/c/shopify-cli-and-tools/shopify-cli-theme-dev-preview-extremely-slow/m-p/2657331#M4577

Verbose output

9:01 PM  shopify theme dev  --store muchisx-dev --verbose
2024-08-07T02:01:25.042Z: Running command theme dev
2024-08-07T02:01:25.058Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-08-07T02:01:25.059Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store muchisx-dev.myshopify.com:
[]

2024-08-07T02:01:25.059Z: Getting session store...
2024-08-07T02:01:25.062Z: 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": "muchisx-dev.myshopify.com"
  }
}

2024-08-07T02:01:25.063Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-08-07T02:01:25.064Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:25.375Z: Request to https://accounts.shopify.com/oauth/introspection completed in 299 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"664ac70cf7b858a35ec26dc6989cb151"
 - x-request-id: f925daa7-1abb-4df2-8204-a0f711a11a02-1722996089

2024-08-07T02:01:25.378Z: The identity token is valid: true
2024-08-07T02:01:25.379Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-08-07T02:01:25.379Z: The current session is valid but needs refresh. Refreshing...
2024-08-07T02:01:25.380Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQItqrLtQYQ1uLLtQZSJggBEhBLZUDLQShCpafO47yYYWwGGhD3K_pnpgJMFZNGwKakghZaEkDU54BWRZoHjkRMF9yJINKSMwAee4NrWZmpSIrnHb9ohtBOvdI4FXVvjtUKZkLIT93EZjsRg0TXthZnorfvzpkA&refresh_token=atkn_CiEItqrLtQYQtsTptgaiARIKEPcr-memAkwVk0bApqSCFloSQLIeNpHeK1YHXwhK4cjrt_E2mGTubI2mdNmfVHaSIFDQUH-YJ8OqeQajtvWA1jwLoyMXSghhBZoekXWAO5C3WAI&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:25.716Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQItqrLtQYQ1uLLtQZSJggBEhBLZUDLQShCpafO47yYYWwGGhD3K_pnpgJMFZNGwKakghZaEkDU54BWRZoHjkRMF9yJINKSMwAee4NrWZmpSIrnHb9ohtBOvdI4FXVvjtUKZkLIT93EZjsRg0TXthZnorfvzpkA&refresh_token=atkn_CiEItqrLtQYQtsTptgaiARIKEPcr-memAkwVk0bApqSCFloSQLIeNpHeK1YHXwhK4cjrt_E2mGTubI2mdNmfVHaSIFDQUH-YJ8OqeQajtvWA1jwLoyMXSghhBZoekXWAO5C3WAI&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 334 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"5ab16f2dc668d858c6698f9cc2b273f4"
 - x-request-id: 183384a0-c8b2-4de0-9f4e-e3956b31d78e-1722996090

2024-08-07T02:01:25.719Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:25.720Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:25.721Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:25.721Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fmuchisx-dev.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:25.980Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=**** completed in 256 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"db4b66a7ccde7f3cfa37971b79b4d809"
 - x-request-id: 8e77f35d-f3a7-4952-897c-92a6b32514e5-1722996090

2024-08-07T02:01:25.990Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=**** completed in 265 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"813f259ae6942a6fc7718cf185a685a5"
 - x-request-id: f852155b-6b39-4e43-be6b-703a61dcb105-1722996090

2024-08-07T02:01:25.993Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fmuchisx-dev.myshopify.com%2Fadmin completed in 267 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"06ec3c0a4aae74074f5adc47dd06646b"
 - x-request-id: 66f01bb5-93e0-49f2-9ae3-fab5dee7c20e-1722996090

2024-08-07T02:01:25.995Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=**** completed in 271 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"67e1e630e5f37bcb6ae539655dbcc071"
 - x-request-id: 0c881e80-418d-46e9-a77b-54545b1501a7-1722996090

2024-08-07T02:01:25.997Z: Setting session store...
2024-08-07T02:01:26.009Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-08-07T02:01:26.010Z: Getting session store...
2024-08-07T02:01:26.011Z: 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:
{
  "storefrontRendererApi": {
    "scopes": []
  }
}

2024-08-07T02:01:26.012Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-08-07T02:01:26.012Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.64.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-08-07T02:01:26.278Z: Request to https://accounts.shopify.com/oauth/introspection completed in 264 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"25e65ecffed1c5c7607831728f67dff7"
 - x-request-id: bb7493e7-7c34-4dbc-bc1c-84ed8e811d21-1722996090

2024-08-07T02:01:26.280Z: The identity token is valid: true
2024-08-07T02:01:26.280Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-08-07T02:01:26.293Z: 
Running system process:
  · Command: ruby -v
  · Working directory: D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev

2024-08-07T02:01:26.314Z: 
Running system process:
  · Command: bundle -v
  · Working directory: D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev

2024-08-07T02:01:26.558Z: Reading the content of file at C:/Users/Migue/AppData/Roaming/npm/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-08-07T02:01:26.567Z:
Running system process:
  · Command: bundle install
  · Working directory: C:/Users/Migue/AppData/Roaming/npm/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-08-07T02:01:27.040Z: 
Running system process:
  · Command: bundle exec ruby C:/Users/Migue/AppData/Roaming/npm/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCPqqy7UGEJrjy7UGYpADCAESECq2d_XXMU8LoqDTCKirV4QaqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWxhdGlvbnNoaXBzLnJlYWRvbmx5IGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi5ncmFwaHFsIGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi50aGVtZXMgDSinUzIQjc-mRL9CRz-qZkG_6DAiPjokNzFmYzA2N2YtMGI4Yi00MTFiLTk0MGQtM2JkNDhlYTBkN2U4QgdBY2NvdW50ShCTk6_pQmNNNpERBbnCQ_URUlN7InN1YiI6ImZiZGIyNjQ5LWUzMjctNDkwNy04ZjY3LTkwOGQyNGNmZDdlMyIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuc2hvcGlmeS5jb20ifWIQZWZIX85MSLCPYUtidFPf7moQrpUtzAZ9S7CygBmfSGB5nBJAl4L9CpSFBPcDvN6Lx3SQSklfKqUiswAEAlwR_qPCKdmb22K2oO3YQ-OqA5p3D7u5OH3bO9TDesuhnO1NS0XKDg --sfr atkn_CqMCCPqqy7UGEJrjy7UGYpQCCAESEPNHnlWKAEwEnF_jMg9mflwaPmh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5zdG9yZWZyb250LXJlbmRlcmVyLmRldnRvb2xzINhSKKdTOiQ3MWZjMDY3Zi0wYjhiLTQxMWItOTQwZC0zYmQ0OGVhMGQ3ZThCB0FjY291bnRKEJOTr-lCY002kREFucJD9RFSU3sic3ViIjoiZmJkYjI2NDktZTMyNy00OTA3LThmNjctOTA4ZDI0Y2ZkN2UzIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zaG9waWZ5LmNvbSJ9YhBlZkhfzkxIsI9hS2J0U9_uahCulS3MBn1LsLKAGZ9IYHmcEkDOYXXDpZ5Fvk43n-i_rxUeP6I_TdstPJIUr75kvLoTNOcIhCimCKa8a9NxhpYQMyxbKcNpVNdorrkh6wPODtoC
  · Working directory: D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev

2024-08-07T02:01:27.811Z: Getting development theme...
2024-08-07T02:01:28.414Z: Request to https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753.json?fields=id%2Cname%2Crole%2Cprocessing completed in 600 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - x-request-id: 9bf7cd18-656a-4222-98d0-0b199a85fcef-1722996092

╭─ success ────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                      │
│  Preview your theme                                                                                  │
│    • http://127.0.0.1:9292 [1]                                                                       │
│                                                                                                      │
│  Next steps                                                                                          │
│    • Customize your theme at the theme editor [2]                                                    │
│    • Share your theme preview [3]                                                                    │
│      (https://muchisx-dev.myshopify.com/?preview_theme_id=170966974753)                              │
│                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] http://127.0.0.1:9292
[2] https://muchisx-dev.myshopify.com/admin/themes/170966974753/editor
[3] https://muchisx-dev.myshopify.com/?preview_theme_id=170966974753

2024-08-07T02:01:28.469Z:
Running system process:
  · Command: ruby -v
  · Working directory: D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev

2024-08-07T02:01:28.486Z:
Running system process:
  · Command: bundle -v
  · Working directory: D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev

2024-08-07T02:01:28.732Z: Reading the content of file at C:/Users/Migue/AppData/Roaming/npm/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-08-07T02:01:28.736Z:
Running system process:
  · Command: bundle install
  · Working directory: C:/Users/Migue/AppData/Roaming/npm/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-08-07T02:01:29.239Z:
Running system process:
  · Command: bundle exec ruby C:/Users/Migue/AppData/Roaming/npm/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme serve D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev --live-reload hot-reload --theme 170966974753 --overwrite-json undefined
  · Working directory: D:/Projects/Miguel Ángel - Work/Miguel Ángel x Programming/Miguel Angel - Shopify/muchisx-dev

DEBUG GET https://muchisx-dev.myshopify.com/admin/api/unstable/themes.json with request_id: 2cf6f2b1-798c-4bf9-9fb1-2361629e724c-1722996115
* Syncing theme #170966974753 on muchisx-dev.myshopify.com
DEBUG GET https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 72ff7075-d1a3-4c8c-aaba-7f3193d16165-1722996116
DEBUG [BulkJob #1960] job request: size=1, bytesize=7406                    100%
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets/bulk.json with request_id: 659473a4-8aa4-4f45-9656-040905f42a08-1722996137
DEBUG [BulkJob #1960] bulk rest_request time: 21512.0915ms
DEBUG [BulkJob #1960] job response: http_status=207
DEBUG [BulkJob #1960] bulk item success (item=templates/index.json)
DEBUG [Bulk] shutdown, remaining_items=0                                    100%
DEBUG update assets/mask-blobs.css
DEBUG update assets/media-gallery.js
                                                                            100%
[2024-08-06 21:02:14] INFO  WEBrick 1.7.0
[2024-08-06 21:02:14] INFO  ruby 3.0.7 (2024-04-23) [x64-mingw32]
[2024-08-06 21:02:14] INFO  WEBrick::HTTPServer#start: pid=11396 port=9292
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 510e9993-106f-49f3-9870-2473a65944b1-1722996141
  • 21:02:17 Synced » update assets/media-gallery.js
DEBUG update assets/newsletter-section.css
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 765b6b3a-5b60-458d-8c54-e3ae859562e8-1722996159
  • 21:02:35 Synced » update assets/mask-blobs.css
DEBUG update assets/password-modal.js
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 258e5a8f-91e6-4b7b-b220-aeef329ec463-1722996163
  • 21:02:39 Synced » update assets/newsletter-section.css
DEBUG update assets/pickup-availability.js
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://muchisx-dev.myshopify.com/?preview_theme_id=170966974753&_fd=0&pb=0
DEBUG `-> 302 request_id: d4d9f5c6-ca3f-4468-b7da-a328e44b0b29-1722996177
DEBUG Proxying GET https://muchisx-dev.myshopify.com/?preview_theme_id=170966974753&_fd=0&pb=0
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 99b81256-b49b-47ac-8792-048b5e489e33-1722996181
  • 21:02:57 Synced » update assets/password-modal.js
DEBUG update assets/predictive-search.js
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 60c86792-3c5f-41a7-aae7-2bce4feabbbf-1722996185
  • 21:03:01 Synced » update assets/pickup-availability.js
DEBUG update assets/product-form.js
DEBUG `-> 302 request_id: bb35573a-0a5c-47d2-970c-a142da800fa4-1722996198
DEBUG Proxying GET https://muchisx-dev.myshopify.com/?_fd=0&pb=0&_fd=0&pb=0
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: e0243d1e-55a4-4dab-906b-948eaeceef1e-1722996203
  • 21:03:19 Synced » update assets/predictive-search.js
DEBUG update assets/product-info.js
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 303030bd-e439-4006-b9a7-ecc06a05adb6-1722996207
  • 21:03:23 Synced » update assets/product-form.js
DEBUG update assets/product-modal.js
DEBUG `-> 200 request_id: ae52b11d-70d8-4ccb-aa4c-a08a4b4b2309-1722996219
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://muchisx-dev.myshopify.com/checkouts/internal/preloads.js?locale=en-GB&_fd=0&pb=0
DEBUG [HotReload] Connected to SSE stream
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: b114e782-caeb-4150-8ed0-1f030d1e6e8f-1722996225
  • 21:03:41 Synced » update assets/product-info.js
DEBUG update assets/product-model.js
DEBUG `-> 200 request_id: 
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: bf269c6d-cde7-4ecf-be89-2437745f73d2-1722996228
  • 21:03:45 Synced » update assets/product-modal.js
DEBUG update assets/pubsub.js
DEBUG PUT https://muchisx-dev.myshopify.com/admin/api/unstable/themes/170966974753/assets.json with request_id: 3a6d1590-bd09-4c17-88ff-26d1be980e2b-1722996246
  • 21:04:02 Synced » update assets/product-model.js
DEBUG update assets/quick-add.css
DEBUG PUT https://muchisx-dev.myshopify.com/

Reproduction steps

  1. Install the latest CLI
  2. Install Ruby 3.0.7 (I tried with multiple versions already, the latest and other ones, this one is the nearest to 2.7.5 that supports bundler)
  3. Run shopify theme dev on a test theme
  4. See it be veeery slow

Operating System

Windows 11 23H2 (OS Build 22631.3958)

Shopify CLI version (check your project's package.json if you're not sure)

3.64.1

Shell

powershell

Node version (run node -v if you're not sure)

20.11

What language and version are you using in your application?

Ruby 3.0.7

jmanzo commented 2 months ago

Hi guys, reporting the same issue here ✋🏻

I still have the same issue. I tried removing everything shopify-cli related on my computer and reinstalled it. But no luck.

Any update on this?

jmanzo commented 2 months ago

If this helps, I ran the command with a verbose flag and got this:

2024-08-08T01:45:01.943Z: Getting development theme...
2024-08-08T01:45:02.529Z: Request to https://store.myshopify.com/admin/api/unstable/themes/123123123.json?fields=id%2Cname%2Crole%2Cprocessing completed in 583 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - x-request-id: xxx

╭─ success ──────────────────────────────────────────╮
│                                                    │
│  Preview your theme                                │
│    • http://127.0.0.1:9292 [1]                     │
│                                                    │
│  Next steps                                        │
│    • Customize your theme at the theme editor [2]  │
│    • Share your theme preview [3]                  │
│      (https://store.myshopify.com/?  │
│      preview_theme_id=123123123)                │
│                                                    │
╰────────────────────────────────────────────────────╯
[1] http://127.0.0.1:9292
[2] https://store.myshopify.com/admin/th
emes/123123123/editor
[3] https://store.myshopify.com/?preview
_theme_id=123123123

2024-08-08T01:45:02.559Z:
Running system process:
  · Command: ruby -v
  · Working directory: /Users/jdevmanzo/Repos/dtc-pages/theme

2024-08-08T01:45:02.611Z:
Running system process:
  · Command: bundle -v
  · Working directory: /Users/jdevmanzo/Repos/dtc-pages/theme

2024-08-08T01:45:02.788Z: Reading the content of file at /Users/jdevmanzo/.nvm/versions/node/v22.5.1/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-08-08T01:45:02.789Z:
Running system process:
  · Command: bundle install
  · Working directory: /Users/jdevmanzo/.nvm/versions/node/v22.5.1/lib/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-08-08T01:45:03.131Z:
Running system process:
  · Command: bundle exec ruby /Users/jdevmanzo/.nvm/versions/node/v22.5.1/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme serve /Users/jdevmanzo/Repos/dtc-pages/laundry-sauce --live-reload hot-reload --theme 135483326601 --overwrite-json undefined
  · Working directory: /Users/jdevmanzo/Repos/dtc-pages/theme

DEBUG GET https://store.myshopify.com/admin/api/unstable/themes.json with request_id: xxxxxx
* Syncing theme #123123123 on store.myshopify.com
mgmanzella commented 2 months ago

@jmanzo @muchisx hey folks 👋 thanks for reporting, we had a platform issue yesterday that was causing certain APIs related to themes to be slow/delayed and maybe even timeout. we resolved the root cause but i believe it might have impacted the CLI theme dev/theme push commands

can you re run the command and let me know if it's still an issue? if it is share verbose logs (and please keep the request_ids in there 😄 )

thanks in advance 🙏

jmanzo commented 2 months ago

Hi @mgmanzella, thanks for the update. I started working as fast as usual yesterday 👍🏻

The CLI is already working smoothly.

mgmanzella commented 2 months ago

amazing glad to hear

muchisx commented 2 months ago

@mgmanzella I confirm it's been back to normal for me on Windows.

I had switched to WSL and it was working well there, may I ask why was this a problem only affecting my windows environment, so I can be more helpful next time creating an issue?

mgmanzella commented 2 months ago

@muchisx no it was affecting all CLI environments since it was an issue at the API level not with the CLI client, thanks for checking tho 🙏