Shopify / cli

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

error: request to https://[STORE].myshopify.com/admin/api/unstable/themes/166797738292.json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: connect ECONNREFUSED 23.227.38.74:443 #4205

Closed lesterdefreitas closed 1 month ago

lesterdefreitas commented 1 month ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

shopify theme dev should work as normal.

Actual behavior

Instead I get an error: error: request to https://[STORE].myshopify.com/admin/api/unstable/themes/166797738292.json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: connect ECONNREFUSED 23.227.38.74:443

Verbose output

lesterdefreitas@Lesters-MacBook-Air naturvet % shopify theme dev --theme-editor-sync --store=https://naturvet.myshopify.com --verbose   
2024-07-15T13:32:07.667Z: Running command theme dev
2024-07-15T13:32:07.685Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-07-15T13:32:07.685Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store naturvet.myshopify.com:
[]

2024-07-15T13:32:07.686Z: Getting session store...
2024-07-15T13:32:07.687Z: 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": "naturvet.myshopify.com"
  }
}

2024-07-15T13:32:07.688Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-07-15T13:32:07.688Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.64.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:08.357Z: Request to https://accounts.shopify.com/oauth/introspection completed in 660 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/"6c2c34aaa45d5d340aad286de3bcb9ab"
 - x-request-id: 742902c5-b82b-4e61-9d86-e5474a1fde0a-1721050328

2024-07-15T13:32:08.359Z: The identity token is valid: true
2024-07-15T13:32:08.360Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-07-15T13:32:08.360Z: The current session is valid but needs refresh. Refreshing...
2024-07-15T13:32:08.361Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI1cfUtAYQ9f_UtAZSJggBEhD9aVl0_xVAW47sfEV0qmYJGhCG6zsxTRpLVLQQIVSBg99DEkDmwvyUVO1R941T-_njM04K4hM9jI7zg-VwDv4I-YlWQbLwhOThlhh23kvIHOWc5PPEvE4pcFQCWwkl5jtJPhkA&refresh_token=atkn_CiEI1cfUtAYQ1eHytQaiARIKEIbrOzFNGktUtBAhVIGD30MSQNS0jZ6dSqlVhi7WqS5cu2cOwYjCKUsPxSQiDR13ZoBg8229OSD7HNCfu3TAtMPaJP5AgRo25ObnLIOhcy_ywQs&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.64.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:09.106Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI1cfUtAYQ9f_UtAZSJggBEhD9aVl0_xVAW47sfEV0qmYJGhCG6zsxTRpLVLQQIVSBg99DEkDmwvyUVO1R941T-_njM04K4hM9jI7zg-VwDv4I-YlWQbLwhOThlhh23kvIHOWc5PPEvE4pcFQCWwkl5jtJPhkA&refresh_token=atkn_CiEI1cfUtAYQ1eHytQaiARIKEIbrOzFNGktUtBAhVIGD30MSQNS0jZ6dSqlVhi7WqS5cu2cOwYjCKUsPxSQiDR13ZoBg8229OSD7HNCfu3TAtMPaJP5AgRo25ObnLIOhcy_ywQs&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 744 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/"c145fb81a14c9d04e55a5b72e1f10e52"
 - x-request-id: ead9a156-7878-4edc-a25a-2be535c396f5-1721050328

2024-07-15T13:32:09.109Z: 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.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:09.109Z: 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.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:09.109Z: 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.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:09.109Z: 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%2Fnaturvet.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.64.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:09.633Z: 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 522 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/"0099a8477e684c91216cc64fa675116a"
 - x-request-id: 82a5459c-7cea-4b89-a114-bc42daf93e47-1721050329

2024-07-15T13:32:09.842Z: 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 729 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/"e07f4efdf5cea74e4eabd4163ba0d2df"
 - x-request-id: cf1cf5f5-52fb-4348-92d8-b1a2f7f7a899-1721050329

2024-07-15T13:32:09.922Z: 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%2Fnaturvet.myshopify.com%2Fadmin completed in 809 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/"24330f3ec2bf886962093793e8aff5a2"
 - x-request-id: c1ffeec6-238c-43c6-a0b7-8a9890583e8a-1721050329

2024-07-15T13:32:09.960Z: 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 848 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/"501f44fe4105f49c920064eb085191a8"
 - x-request-id: b4f6f96e-5dc9-497e-a0c5-6fa634c62fa6-1721050329

2024-07-15T13:32:09.961Z: Setting session store...
2024-07-15T13:32:09.969Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-07-15T13:32:09.969Z: Getting session store...
2024-07-15T13:32:09.970Z: 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-07-15T13:32:09.970Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-07-15T13:32:09.970Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.64.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-07-15T13:32:10.652Z: Request to https://accounts.shopify.com/oauth/introspection completed in 681 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/"dc1ae599b101d84ec14abad972405129"
 - x-request-id: 26f67c6d-611e-473e-a312-643be8e9975d-1721050330

2024-07-15T13:32:10.653Z: The identity token is valid: true
2024-07-15T13:32:10.653Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-07-15T13:32:10.660Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/lesterdefreitas/Documents/GitHub/naturvet

2024-07-15T13:32:10.687Z: 
Running system process:
  · Command: bundle -v
  · Working directory: /Users/lesterdefreitas/Documents/GitHub/naturvet

2024-07-15T13:32:10.819Z: Reading the content of file at /opt/homebrew/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-07-15T13:32:10.820Z: 
Running system process:
  · Command: bundle install
  · Working directory: /opt/homebrew/lib/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-07-15T13:32:11.015Z: 
Running system process:
  · Command: bundle exec ruby /opt/homebrew/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCNnJ1LQGEPmB1bQGYpADCAESEJaNOHjJ4k4qug5Nryk5ebEaqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWxhdGlvbnNoaXBzLnJlYWRvbmx5IGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi5ncmFwaHFsIGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi50aGVtZXMgDSinUzIQWmnEDgofRGuHlaHhLP7IMTokZDRkN2VhNWEtNTI5Ny00N2Q1LTg5ZmItNmVjMzExMDJmMzI3QgdBY2NvdW50ShCDWG5aZyZK2JaliDxDaw3dUlN7InN1YiI6ImZiZGIyNjQ5LWUzMjctNDkwNy04ZjY3LTkwOGQyNGNmZDdlMyIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuc2hvcGlmeS5jb20ifWIQhad5IZcxSyqpQcl8Vpw5ZmoQFQfpUI-VT8qnl3NfJ39t7BJA-ASAtxh0uPJ7QzqmYRebuXYVxPP92XNbeNVUbnm-2EmZYIcIr2KskUWt652NC1yyMDI7EqRvCZwdBtzY624XCQ --sfr atkn_CqMCCNnJ1LQGEPmB1bQGYpQCCAESEAwjdr-oA0oLsli3nHjbu7YaPmh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5zdG9yZWZyb250LXJlbmRlcmVyLmRldnRvb2xzINhSKKdTOiRkNGQ3ZWE1YS01Mjk3LTQ3ZDUtODlmYi02ZWMzMTEwMmYzMjdCB0FjY291bnRKEINYblpnJkrYlqWIPENrDd1SU3sic3ViIjoiZmJkYjI2NDktZTMyNy00OTA3LThmNjctOTA4ZDI0Y2ZkN2UzIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zaG9waWZ5LmNvbSJ9YhCFp3khlzFLKqlByXxWnDlmahAVB-lQj5VPyqeXc18nf23sEkDglVccrkY_HC53WfrkDKTdH2YDQdz2q7rWwZj5oba0t44KhGwIUB1FUAfry65OHYOIrSh1gSWTVoxYOHBjZ-MF
  · Working directory: /Users/lesterdefreitas/Documents/GitHub/naturvet

2024-07-15T13:32:11.303Z: Getting development theme...
2024-07-15T13:32:27.448Z: Request to https://naturvet.myshopify.com/admin/api/unstable/themes/166797738292.json?fields=id%2Cname%2Crole%2Cprocessing completed in 16144 ms
With response headers:

╭─ error ────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                │
│  request to https://naturvet.myshopify.com/admin/api/unstable/themes/166797738292.json?fields  │
│  =id%2Cname%2Crole%2Cprocessing failed, reason: connect ECONNREFUSED 23.227.38.74:443          │
│                                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-07-15T13:32:27.488Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/lesterdefreitas/Documents/GitHub/naturvet

2024-07-15T13:32:27.647Z: Obtaining the dependency manager in directory /Users/lesterdefreitas/Documents/GitHub/naturvet...
2024-07-15T13:32:27.736Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/lesterdefreitas/Documents/GitHub/naturvet

2024-07-15T13:32:28.190Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 436 ms
With response headers:
 - x-request-id: a524323b-ebfd-495b-a9a3-9845678ca690

2024-07-15T13:32:28.192Z: Analytics event sent: {
  "command": "theme dev",
  "time_start": 1721050327669,
  "time_end": 1721050347484,
  "total_time": 19815,
  "success": false,
  "cli_version": "3.64.0",
  "ruby_version": "3.3.4",
  "node_version": "22.4.1",
  "is_employee": false,
  "uname": "darwin arm64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "zsh",
  "env_device_id": "da59676f07bfeb929e6d032e1000a952f7a4d2d8",
  "env_cloud": "localhost",
  "env_package_manager": "unknown",
  "env_is_global": true,
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_all_timing_network_ms": 19286,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/cli",
  "cmd_all_force": false,
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "8ab481c972c4d7958909f6c9741e40e9da4ffc6e",
  "cmd_all_timing_active_ms": 528,
  "cmd_all_exit": "expected_error",
  "args": "--theme-editor-sync --store=https://naturvet.myshopify.com --verbose",
  "error_message": "request to https://naturvet.myshopify.com/admin/api/unstable/themes/166797738292.json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: connect ECONNREFUSED 23.227.38.74:443",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-07-15T13:32:28.203Z: Reporting handled error to Bugsnag: request to https://naturvet.myshopify.com/admin/api/unstable/themes/166797738292.json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: connect ECONNREFUSED 23.227.38.74:443
2024-07-15T13:32:28.259Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/lesterdefreitas/Documents/GitHub/naturvet

2024-07-15T13:32:28.356Z: Obtaining the dependency manager in directory /Users/lesterdefreitas/Documents/GitHub/naturvet...
lesterdefreitas@Lesters-MacBook-Air naturvet % 


### Reproduction steps

1. Run  `shopify theme dev`

### Operating System

Mac OS 14.0 (23A344)

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

3.64.0

### Shell

zsh

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

v22.4.1

### What language and version are you using in your application?

ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin23]
lucyxiang commented 1 month ago

Hello @lesterdefreitas, looking at the shop and theme you are accessing, it looks like this theme 166797738292 does not exist on the shop. Can you double check this?

lesterdefreitas commented 1 month ago

Hi @lucyxiang, thanks for coming back. It was a dev store so it very well may have been deleted in the process as I tried a couple shopify auth logout and logging back in attempts, which I believe deletes dev themes, yes? Just to also add, this error is a bit intermittent for me. Switching networks has resolved it at times, even though the initial network was working. So it's a weird one. But extremely frustrating. Could it be a network related issue though?

lucyxiang commented 1 month ago

@lesterdefreitas this error looks like to be coming from Shopify when we try to fetch for theme data, not the CLI itself. I suspected it's a network issue but if it works sometimes and doesn't work sometimes and you've changes nothing about your setup, that is strange. Does this error happen when you can access the theme in the admin (ie. connection error when using the CLI but not when using the browser)?

lesterdefreitas commented 1 month ago

@lucyxiang it happens when we try to create a new dev theme (shopify theme dev) so the theme may or may not exist at the time of running the command. But either way the command should create a new theme if there isn't one, or at least that's been our experience.

Dev themes aren't visible in the admin theme library so we can't really check without starting up the theme and opening the theme editor link from the cli. But in this case it fails anyway, so we can't.

But, I definitely think this has something to do with network as it works after I restart our network and then shopify auth logout and try again.

It's weird and hard to explain. But I don't think it's a cli or Shopify issue actually. Must be something on our side. Annoying though.

I think this issue can be closed.