Skip to content
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]: Is shopify theme dev ... command requiring an access token or password for syncing my development theme with the store? #4336

Closed
2 tasks done
rubenesda opened this issue Aug 16, 2024 · 3 comments
Labels
Area: @shopify/theme @shopify/theme package issues #gsd:40767 Fortify local development experience for Liquid themes no-issue-activity Type: Bug Something isn't working

Comments

@rubenesda
Copy link

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

According to the documentation, this should work based on https://shopify.dev/docs/storefronts/themes/getting-started/create

Once you guarantee that you are working with

  • Node.js: 18.20+, 20.10 or higher
  • Git: 2.28.0 or higher
  • Ruby version 2.7.5 or higher

You should run the next commands

shopify theme init
cd "my-new-theme"
shopify theme dev --store {store-name}

Here, a login was requested due to a new requested login from a device. Then, I set it up and validated the code generated by shopify theme command. my my-new-theme folder was ruben-theme-2 and my store-name was created from Shopify partner and it was called rub-theme-2.myshopify.com. Then, I attached an image of my expected behavior below.

image

image

This means that a "synced event" should have shown up

Actual behavior

However, the actual result was this. Look at the next image below

image

The "synced event" wasn't shown up.

Nevertheless, I found a strange way to remediate it, you would need to install Theme access app on your store, create a new password, and copy it and paste it on your terminal like a Shopify CLI environment variable. For instance

export SHOPIFY_CLI_THEME_TOKEN=shptka_passwordExample

Once done, you can run again the

shopify theme dev --store {store-name}
# or
shopify theme dev

And you will get the expected result

Verbose output

This is the log from actual result

shopify theme dev --verbose                                                                                                                                                                                                                                    130 ↵
2024-08-16T04:36:07.238Z: Running command theme dev
2024-08-16T04:36:07.269Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-08-16T04:36:07.269Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store rub-theme-2.myshopify.com:
[]

2024-08-16T04:36:07.269Z: Getting session store...
2024-08-16T04:36:07.273Z: 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": "rub-theme-2.myshopify.com"
  }
}

2024-08-16T04:36:07.273Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-08-16T04:36:07.274Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:07.836Z: Request to https://accounts.shopify.com/oauth/introspection completed in 550 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/"3885551d508478c895cceb2ca13c62dd"
 - x-request-id: bfd1bce2-4ed8-441d-9147-1f2295812d13-1723782967
    
2024-08-16T04:36:07.844Z: The identity token is valid: true
2024-08-16T04:36:07.845Z: 
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-16T04:36:07.846Z: The current session is valid but needs refresh. Refreshing...
2024-08-16T04:36:07.849Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIh6D7tQYQp9j7tQZSJggBEhA253keGsdBrpuusrNHi1p4GhCVaVuLwZ9KjZaaqPT94pQLEkB6ZpgFMBP9u0_0amxzrHB9ahU_IjKgam1zilKKKceVogbiEBFbF0An4xLIPnksRfk_wq3T6WWcYiXhE7pU3fEK&refresh_token=atkn_CiEIh6D7tQYQh7qZtwaiARIKEJVpW4vBn0qNlpqo9P3ilAsSQGZxJW-GMZBiEySWBytADE318XlSISfncT-yusPUjrP9tUIKu6H9SU9l75SnMTNgHPUL1nDnavgaZM8iEsWXOAg&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:08.213Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIh6D7tQYQp9j7tQZSJggBEhA253keGsdBrpuusrNHi1p4GhCVaVuLwZ9KjZaaqPT94pQLEkB6ZpgFMBP9u0_0amxzrHB9ahU_IjKgam1zilKKKceVogbiEBFbF0An4xLIPnksRfk_wq3T6WWcYiXhE7pU3fEK&refresh_token=atkn_CiEIh6D7tQYQh7qZtwaiARIKEJVpW4vBn0qNlpqo9P3ilAsSQGZxJW-GMZBiEySWBytADE318XlSISfncT-yusPUjrP9tUIKu6H9SU9l75SnMTNgHPUL1nDnavgaZM8iEsWXOAg&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 359 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/"055bdc977dccdb2b580b75957824117e"
 - x-request-id: 9643f15d-375f-49df-82d6-9934925dbec0-1723782968
    
2024-08-16T04:36:08.220Z: 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.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:08.221Z: 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.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:08.221Z: 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.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:08.222Z: 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%2Frub-theme-2.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:08.558Z: 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 329 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/"7de33831663f8bb5150b8ca0a419a776"
 - x-request-id: c6c14e39-3aed-4553-9b02-c6f203f96134-1723782968
    
2024-08-16T04:36:08.566Z: 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 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/"f3ca27f92b2b5d01147885787e0831e4"
 - x-request-id: 3e1709c6-d946-4ec3-9e3c-86c75e31b367-1723782968
    
2024-08-16T04:36:08.572Z: 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 345 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/"adfacb00e08d4ccfb95112c7b8e899d2"
 - x-request-id: 2f60b80a-ca71-49c8-9659-745013552a09-1723782968
    
2024-08-16T04:36:08.588Z: 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%2Frub-theme-2.myshopify.com%2Fadmin completed in 356 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/"5d9c023286c8405e7657feaca9870949"
 - x-request-id: 40fe0182-acd6-44d2-a33e-fa4ebcffb44f-1723782968
    
2024-08-16T04:36:08.592Z: Setting session store...
2024-08-16T04:36:08.599Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-08-16T04:36:08.599Z: Getting session store...
2024-08-16T04:36:08.602Z: 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-16T04:36:08.602Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-08-16T04:36:08.603Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.65.3
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-08-16T04:36:08.898Z: Request to https://accounts.shopify.com/oauth/introspection completed in 292 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/"c30f0ef8e547ab99cc6350681c25be78"
 - x-request-id: 362324a1-ba96-442b-aee0-37c165aa62bf-1723782968
    
2024-08-16T04:36:08.902Z: The identity token is valid: true
2024-08-16T04:36:08.902Z: 
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-16T04:36:08.916Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test

2024-08-16T04:36:09.092Z: 
Running system process:
  · Command: bundle -v
  · Working directory: /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test

2024-08-16T04:36:09.370Z: Reading the content of file at /Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-08-16T04:36:09.373Z: 
Running system process:
  · Command: bundle install
  · Working directory: /Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-08-16T04:36:09.928Z: 
Running system process:
  · Command: bundle exec ruby /Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCLiu-7UGENjm-7UGYpADCAESEHVBi_c7e0bLuLGtFxOnZH4aqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWxhdGlvbnNoaXBzLnJlYWRvbmx5IGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi5ncmFwaHFsIGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi50aGVtZXMgDSinUzIQaMU9MncdQEOCT0MTnwsW8DokMTQ5OTI1MWQtODI4YS00ZjlkLWIwYWUtMzQ1ZWYxZjI3YWRmQgdBY2NvdW50ShBWSQCNWJZJOJLuX0C5_DPDUlN7InN1YiI6ImZiZGIyNjQ5LWUzMjctNDkwNy04ZjY3LTkwOGQyNGNmZDdlMyIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuc2hvcGlmeS5jb20ifWIQ9Sh9y7xSSX-qXrzr3mSdKmoQRNVuevuURTmr_f-QKNn4fxJAQplCEGJeKUe3fEtRPKfOSrsyNu7X1MwG-RpjSZgZAe7FfG25-CGxwKfoLy9vurN6NzWjlin8hZnYRYPBddlUCA --sfr atkn_CqMCCLiu-7UGENjm-7UGYpQCCAESEFYNeh1SY08cuhd8diBHQN8aPmh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5zdG9yZWZyb250LXJlbmRlcmVyLmRldnRvb2xzINhSKKdTOiQxNDk5MjUxZC04MjhhLTRmOWQtYjBhZS0zNDVlZjFmMjdhZGZCB0FjY291bnRKEFZJAI1Ylkk4ku5fQLn8M8NSU3sic3ViIjoiZmJkYjI2NDktZTMyNy00OTA3LThmNjctOTA4ZDI0Y2ZkN2UzIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zaG9waWZ5LmNvbSJ9YhD1KH3LvFJJf6pevOveZJ0qahBE1W56-5RFOav9_5Ao2fh_EkA8PBdhxha45vGO6eqPeTfzMIloXYc-oF9eaVC0jj4l4qRVUBi0KgsKbL-9gNETw0zXKhB8JTreH3mNpZbQWAAP
  · Working directory: /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test

2024-08-16T04:36:10.611Z: Getting development theme...
2024-08-16T04:36:11.312Z: Request to https://rub-theme-2.myshopify.com/admin/api/unstable/themes/170326786366.json?fields=id%2Cname%2Crole%2Cprocessing completed in 698 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - x-request-id: f0525fc7-9af7-4bc2-aae6-1c73e7c7fdbf-1723782971
    
╭─ 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://rub-theme-2.myshopify.com/?preview_theme_id=170326786366)                                                                         │
│                                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] http://127.0.0.1:9292
[2] https://rub-theme-2.myshopify.com/admin/themes/170326786366/editor
[3] https://rub-theme-2.myshopify.com/?preview_theme_id=170326786366

2024-08-16T04:36:11.434Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test

2024-08-16T04:36:11.564Z: 
Running system process:
  · Command: bundle -v
  · Working directory: /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test

2024-08-16T04:36:11.809Z: Reading the content of file at /Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-08-16T04:36:11.810Z: 
Running system process:
  · Command: bundle install
  · Working directory: /Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-08-16T04:36:12.314Z: 
Running system process:
  · Command: bundle exec ruby /Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme serve /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test --live-reload hot-reload --theme 170326786366 --overwrite-json undefined
  · Working directory: /Users/vov/Documents/git-repos/dev-liquid/rub-theme-test

/Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify:15: warning: observer was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add observer to your Gemfile or gemspec.
/Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify:15: warning: webrick was loaded from the standard library, but is not part of the default gems since Ruby 3.0.0. Add webrick to your Gemfile or gemspec.
/Users/vov/.nvm/versions/node/v20.11.0/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify:15: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
DEBUG timeout in GET https://rub-theme-2.myshopify.com/admin/api/unstable/themes.json
DEBUG timeout in GET https://rub-theme-2.myshopify.com/admin/api/unstable/themes.json

Reproduction steps

  1. Create a Shopify Partner user
  2. Create a new development store
  3. Check you've installed node 20.11.0, @shopify/[email protected], @shopify/[email protected], and ruby 3.3.0
  4. shopify theme init
  5. cd "my-new-theme"
  6. shopify theme dev --store {store-name}
  7. Proceed login step
  8. Wait the result
  9. cancel the previous command
  10. Go to development store
  11. Add Theme access app
  12. Create a new password
  13. Copy it from the email and paste it on your terminal.
  14. Export a new env var SHOPIFY_CLI_THEME_TOKEN with your password
  15. run the command shopify theme dev --store {store-name} or shopify theme dev

Operating System

Mac OS BigSur M1

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

3.65.3

Shell

zsh

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

v20.11.0

What language and version are you using in your application?

Ruby 3.3.0

@rubenesda rubenesda added the Type: Bug Something isn't working label Aug 16, 2024
@rubenesda rubenesda changed the title [Bug]: Is shopify theme dev requiring an access token or password for syncing my development theme with the store? [Bug]: Is shopify theme dev ... command requiring an access token or password for syncing my development theme with the store? Aug 16, 2024
@amcaplan amcaplan added the Area: @shopify/theme @shopify/theme package issues label Aug 19, 2024
@karreiro karreiro added the #gsd:40767 Fortify local development experience for Liquid themes label Aug 26, 2024
@lukeh-shopify
Copy link
Contributor

👋 Hi @rubenesda, thanks for the report!

I'm glad you found a workaround for you by exporting the env var with a token. However, you should not have to do this step. Is it still working for you?

Looking at your logs, DEBUG timeout in GET https://rub-theme-2.myshopify.com/admin/api/unstable/themes.json is standing out for me. I wonder if this is indicating an issue with your connection. There was a similar issue that came up recently and they had the same error logs. Can you try their solution and see if that works for you as well? #4242 (comment)

Thanks 🙏

Copy link
Contributor

github-actions bot commented Oct 9, 2024

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

@lukeh-shopify
Copy link
Contributor

👋🏻 Hey @rubenesda, because there hasn’t been activity in the last couple of weeks we’ll be closing this issue. However if you’re still experiencing the same problem, please reopen the issue and share the outstanding context we’ve requested. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues #gsd:40767 Fortify local development experience for Liquid themes no-issue-activity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants