Shopify / cli

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

[Bug]: Error when pulling settings from theme with contextual templates #3301

Closed anders-christiansen closed 5 months ago

anders-christiansen commented 7 months ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

It should have pulled the theme settings from the theme i tried to pull from.

Actual behavior

It looks like it pulls the contextual files before it pulls the parent files specified in the contextual files, which leads to an error.

2024-01-24T12:52:25.034Z: Completed command theme pull • 12:53:18 ERROR » update templates/index.context.7736b13e-60bd-471f-8c62-64730da78cfd.json: Parent filename 'index.json' does not exist. Please enter a valid filename • 12:53:24 ERROR » update templates/product.accessories.context.7736b13e-60bd-471f-8c62-64730da78cfd.json: Parent filename 'product.accessories.json' does not exist. Please enter a valid filename • 12:53:24 ERROR » update templates/product.accessories.context.dk.json: Parent filename 'product.accessories.json' does not exist. Please enter a valid filename • 12:53:25 ERROR » update templates/product.context.7736b13e-60bd-471f-8c62-64730da78cfd.json: Parent filename 'product.json' does not exist. Please enter a valid filename • 12:53:26 ERROR » update templates/product.grails.context.7736b13e-60bd-471f-8c62-64730da78cfd.json: Parent filename 'product.grails.json' does not exist. Please enter a valid filename • 12:53:27 ERROR » update templates/product.toej.context.7736b13e-60bd-471f-8c62-64730da78cfd.json: Parent filename 'product.toej.json' does not exist. Please enter a valid filename

Verbose output

Run shopify theme pull --only config/settings_data.json locales/*.json templates/**/*.json templates/*.json sections/*.json --live --verbose
2024-01-24T12:51:55.622Z: Running command theme pull
2024-01-24T12:51:55.629Z shopify:theme:pull init version: @oclif/core@2.11.7 argv: [ '--only', 'config/settings_data.json', 'locales/*.json', 'templates/**/*.json', 'templates/*.json', 'sections/*.json', '--live', '--verbose' ]
2024-01-24T12:51:55.664Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-01-24T12:51:55.664Z: Getting development theme...
2024-01-24T12:51:55.674Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /home/runner/work/TheSneakerStoreV3/TheSneakerStoreV3

2024-01-24T12:51:55.702Z: 
Running system process:
  · Command: bundle -v
  · Working directory: /home/runner/work/TheSneakerStoreV3/TheSneakerStoreV3

2024-01-24T12:51:55.915Z: Reading the content of file at /opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-01-24T12:51:55.920Z: 
Running system process:
  · Command: bundle install
  · Working directory: /opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2024-01-24T12:52:08.239Z: 
Running system process:
  · Command: bundle exec ruby /opt/hostedtoolcache/node/18.19.0/x64/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme pull /home/runner/work/TheSneakerStoreV3/TheSneakerStoreV3 --live --only config/settings_data.json --only locales/*.json --only templates/**/*.json --only templates/*.json --only sections/*.json
  · Working directory: /home/runner/work/TheSneakerStoreV3/TheSneakerStoreV3

DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes.json with request_id: 7f38d98e-a37f-449f-95bd-31c6490cf20e
┏━━ Pulling theme files from cart_checkout_button_fix (#163087810877) on thesneakstorese.myshopify.com 
┃ 25lDEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json with request_id: e46a013f-48a3-4ad9-82d6-acf093e249fd
┃ DEBUG ignore assets/Anyday.png
┃ DEBUG ignore assets/app.css
┃ DEBUG ignore assets/app.js
┃ DEBUG ignore assets/ApplePay.png
┃ DEBUG ignore assets/arrow-line.png
┃ DEBUG ignore assets/bin.png
┃ DEBUG ignore assets/blank.gif
┃ DEBUG ignore assets/block-cross.png
┃ DEBUG ignore assets/custom.css.liquid
┃ DEBUG ignore assets/dropdown.png
┃ DEBUG ignore assets/edit.png
┃ DEBUG ignore assets/flexslider-leftright.png
┃ DEBUG ignore assets/giftcard.v.1.0.js
┃ DEBUG ignore assets/gls.png
┃ DEBUG ignore assets/GooglePay.png
┃ DEBUG ignore assets/gravatar_def.png
┃ DEBUG ignore assets/ico-checkout-lock-contrasty.png
┃ DEBUG ignore assets/Levering.svg
┃ DEBUG ignore assets/link-sq.png
┃ DEBUG ignore assets/Mastercard.png
┃ DEBUG ignore assets/Mobilepay.png
┃ DEBUG ignore assets/Postnord.png
┃ DEBUG ignore assets/shipping-calculator.v1.0.min.js
┃ DEBUG ignore assets/SikkerBetaling.png
┃ DEBUG ignore assets/styles.css.liquid
┃ DEBUG ignore assets/swatches.css.liquid
┃ DEBUG ignore assets/theme.js
┃ DEBUG ignore assets/tiny-img-link-preloader.js
┃ DEBUG ignore assets/tp.png
┃ DEBUG ignore assets/tphvid.png
┃ DEBUG ignore assets/tpstar.png
┃ DEBUG ignore assets/trustscore.png
┃ DEBUG ignore assets/tss-sko.png
┃ DEBUG ignore assets/vendor.min.js
┃ DEBUG ignore assets/Visa.png
┃ DEBUG ignore config/settings_schema.json
┃ DEBUG get config/settings_data.json
┃ DEBUG ignore layout/gift_card.liquid
┃ DEBUG ignore layout/password.liquid
┃ DEBUG ignore layout/theme.liquid
┃ DEBUG get locales/da.json
┃ DEBUG ignore sections/announcement-bar.liquid
┃ DEBUG ignore sections/announcement-barto.liquid
┃ DEBUG ignore sections/apps.liquid
┃ DEBUG ignore sections/background-video.liquid
┃ DEBUG ignore sections/cart-drawer.liquid
┃ DEBUG ignore sections/collapsible-tabs.liquid
┃ DEBUG ignore sections/collection-list.liquid
┃ DEBUG ignore sections/compact-messages.liquid
┃ DEBUG ignore sections/contact-form.liquid
┃ DEBUG ignore sections/cross-page-promos.liquid
┃ DEBUG ignore sections/custom-liquid.liquid
┃ DEBUG ignore sections/custom-row.liquid
┃ DEBUG ignore sections/faq-header.liquid
┃ DEBUG ignore sections/featured-blog.liquid
┃ DEBUG ignore sections/featured-collection.liquid
┃ DEBUG ignore sections/featured-collections.liquid
┃ DEBUG ignore sections/featured-product.liquid
┃ DEBUG ignore sections/footer.liquid
┃ DEBUG ignore sections/gallery.liquid
┃ DEBUG ignore sections/header.liquid
┃ DEBUG ignore sections/image-with-text-overlay.liquid
┃ DEBUG ignore sections/image-with-text.liquid
┃ DEBUG ignore sections/logo-list.liquid
┃ DEBUG ignore sections/main-404.liquid
┃ DEBUG ignore sections/main-account.liquid
┃ DEBUG ignore sections/main-activate_account.liquid
┃ DEBUG ignore sections/main-addresses.liquid
┃ DEBUG ignore sections/main-article.liquid
┃ DEBUG ignore sections/main-blog.liquid
┃ DEBUG ignore sections/main-cart.liquid
┃ DEBUG ignore sections/main-collection.liquid
┃ DEBUG ignore sections/main-contact.liquid
┃ DEBUG ignore sections/main-gift-card.liquid
┃ DEBUG ignore sections/main-list-collections.liquid
┃ DEBUG ignore sections/main-login.liquid
┃ DEBUG ignore sections/main-order.liquid
┃ DEBUG ignore sections/main-page.liquid
┃ DEBUG ignore sections/main-password.liquid
┃ DEBUG ignore sections/main-product.liquid
┃ DEBUG ignore sections/main-register.liquid
┃ DEBUG ignore sections/main-reset_password.liquid
┃ DEBUG ignore sections/main-search.liquid
┃ DEBUG ignore sections/map.liquid
┃ DEBUG ignore sections/multi-column.liquid
┃ DEBUG ignore sections/newsletter.liquid
┃ DEBUG ignore sections/popup.liquid
┃ DEBUG ignore sections/predictive-search.liquid
┃ DEBUG ignore sections/product-list.liquid
┃ DEBUG ignore sections/product-mini-recommendations.liquid
┃ DEBUG ignore sections/product-recommendations.liquid
┃ DEBUG ignore sections/product-template-product-list.liquid
┃ DEBUG ignore sections/rich-text.liquid
┃ DEBUG ignore sections/scrolling-banner.liquid
┃ DEBUG ignore sections/slideshow.liquid
┃ DEBUG ignore sections/store-availability.liquid
┃ DEBUG ignore sections/store-messages.liquid
┃ DEBUG ignore sections/testimonials.liquid
┃ DEBUG ignore sections/video-with-text.liquid
┃ DEBUG ignore sections/video.liquid
┃ DEBUG ignore snippets/accordion-helper-product-content.liquid
┃ DEBUG ignore snippets/accordion-item.liquid
┃ DEBUG ignore snippets/accordion.liquid
┃ DEBUG ignore snippets/arrow-left.liquid
┃ DEBUG ignore snippets/arrow-right.liquid
┃ DEBUG ignore snippets/article-block-small.liquid
┃ DEBUG ignore snippets/backorder.liquid
┃ DEBUG ignore snippets/bgset.liquid
┃ DEBUG ignore snippets/breadcrumbs.liquid
┃ DEBUG ignore snippets/cart-item.liquid
┃ DEBUG ignore snippets/collection-block.liquid
┃ DEBUG ignore snippets/country-picker.liquid
┃ DEBUG ignore snippets/country-popup.liquid
┃ DEBUG ignore snippets/cross-sell.liquid
┃ DEBUG ignore snippets/custom-select.liquid
┃ DEBUG ignore snippets/Delivery_info.liquid
┃ DEBUG ignore snippets/delivery_info_text.liquid
┃ DEBUG ignore snippets/delivery_info_textto.liquid
┃ DEBUG ignore snippets/faceted-filters.liquid
┃ DEBUG ignore snippets/feather-printer.liquid
┃ DEBUG ignore snippets/free-shipping-bar.liquid
┃ DEBUG ignore snippets/head-tag.liquid
┃ DEBUG ignore snippets/icon-3d-badge-full-color.liquid
┃ DEBUG ignore snippets/icon-label.liquid
┃ DEBUG ignore snippets/icon-location.liquid
┃ DEBUG ignore snippets/icon-toggle-menu.liquid
┃ DEBUG ignore snippets/icon-video-badge-full-color.liquid
┃ DEBUG ignore snippets/icon.liquid
┃ DEBUG ignore snippets/kopknapper.liquid
┃ DEBUG ignore snippets/localization.liquid
┃ DEBUG ignore snippets/lock-icon.liquid
┃ DEBUG ignore snippets/main-nav-links.liquid
┃ DEBUG ignore snippets/media.liquid
┃ DEBUG ignore snippets/multiline-text.liquid
┃ DEBUG ignore snippets/onboarding-collection-block.liquid
┃ DEBUG ignore snippets/onboarding-product-block.liquid
┃ DEBUG ignore snippets/pagination-control.liquid
┃ DEBUG ignore snippets/popup-close.liquid
┃ DEBUG ignore snippets/price-range.liquid
┃ DEBUG ignore snippets/product-block.liquid
┃ DEBUG ignore snippets/product-item.liquid
┃ DEBUG ignore snippets/product-label-detail.liquid
┃ DEBUG ignore snippets/product-label.liquid
┃ DEBUG ignore snippets/rating-star-icon.liquid
┃ DEBUG ignore snippets/rating.liquid
┃ DEBUG ignore snippets/responsive-image.liquid
┃ DEBUG ignore snippets/shipping-calculator.liquid
┃ DEBUG ignore snippets/Size_info.liquid
┃ DEBUG ignore snippets/social-icons.liquid
┃ DEBUG ignore snippets/social-meta-tags.liquid
┃ DEBUG ignore snippets/social-sharing.liquid
┃ DEBUG ignore snippets/store-availability.liquid
┃ DEBUG ignore snippets/structured-data-article.liquid
┃ DEBUG ignore snippets/structured-data-product.liquid
┃ DEBUG ignore snippets/svg-bag.liquid
┃ DEBUG ignore snippets/svg-basket.liquid
┃ DEBUG ignore snippets/svg-box.liquid
┃ DEBUG ignore snippets/svg-cart.liquid
┃ DEBUG ignore snippets/svg-chevron-down.liquid
┃ DEBUG ignore snippets/svg-chevron-left.liquid
┃ DEBUG ignore snippets/svg-chevron-right.liquid
┃ DEBUG ignore snippets/svg-facebook.liquid
┃ DEBUG ignore snippets/svg-filter.liquid
┃ DEBUG ignore snippets/svg-grid.liquid
┃ DEBUG ignore snippets/svg-instagram.liquid
┃ DEBUG ignore snippets/svg-linkedin.liquid
┃ DEBUG ignore snippets/svg-map-marker.liquid
┃ DEBUG ignore snippets/svg-menu.liquid
┃ DEBUG ignore snippets/svg-minus.liquid
┃ DEBUG ignore snippets/svg-pickup-available.liquid
┃ DEBUG ignore snippets/svg-pickup-unavailable.liquid
┃ DEBUG ignore snippets/svg-pickup-warning.liquid
┃ DEBUG ignore snippets/svg-pinterest.liquid
┃ DEBUG ignore snippets/svg-play.liquid
┃ DEBUG ignore snippets/svg-plus.liquid
┃ DEBUG ignore snippets/svg-rss.liquid
┃ DEBUG ignore snippets/svg-search.liquid
┃ DEBUG ignore snippets/svg-size_icon.liquid
┃ DEBUG ignore snippets/svg-snapchat.liquid
┃ DEBUG ignore snippets/svg-spotify.liquid
┃ DEBUG ignore snippets/svg-star.liquid
┃ DEBUG ignore snippets/svg-tiktok.liquid
┃ DEBUG ignore snippets/svg-tumblr.liquid
┃ DEBUG ignore snippets/svg-twitch.liquid
┃ DEBUG ignore snippets/svg-twitter.liquid
┃ DEBUG ignore snippets/svg-user.liquid
┃ DEBUG ignore snippets/svg-vimeo.liquid
┃ DEBUG ignore snippets/svg-wechat.liquid
┃ DEBUG ignore snippets/svg-whatsapp.liquid
┃ DEBUG ignore snippets/svg-x.liquid
┃ DEBUG ignore snippets/svg-youtube.liquid
┃ DEBUG ignore snippets/tiny-script-control.liquid
┃ DEBUG ignore snippets/tpstyling.liquid
┃ DEBUG ignore snippets/unit-price.liquid
┃ DEBUG ignore snippets/variant-picker.liquid
┃ DEBUG ignore templates/gift_card.liquid
┃ DEBUG ignore templates/robots.txt.liquid
┃ DEBUG ignore templates/search.cross-sell-all.liquid
┃ DEBUG ignore templates/search.cross-sell-filters.liquid
┃ DEBUG ignore templates/search.data.liquid
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fda.json with request_id: 830b0a89-26b0-4bb1-af67-bea901892aba
┃ DEBUG get locales/de.json
┃  1%  
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=config%2Fsettings_data.json with request_id: 6fd9f83c-3112-42e1-8760-1ca76a920476
┃ DEBUG get locales/en.default.json
┃  2%  
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fde.json with request_id: c505e192-b25e-4512-92ba-adad8a141b13
┃ DEBUG get locales/es.json
┃  4%  
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fen.default.json with request_id: 7d6761e3-a8ea-49ac-85b1-c91dafb282f9
┃ DEBUG get locales/fr.json
┃  5%  
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fes.json with request_id: 486db8ec-332a-40e4-9963-826e03ad8bae
┃ DEBUG get locales/it.json
┃  7%  
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Ffr.json with request_id: 12f3f6b5-5cbc-433a-91ed-eebc1ff43877
┃ DEBUG get locales/nl.json
┃  8%  
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fit.json with request_id: 3c97c055-7d28-4e81-b9a3-5eca485f5649
┃ DEBUG get locales/pt-BR.json
┃  10% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fpt-BR.json with request_id: 2b2e57dd-f2ff-488b-8d3b-82f45381a65f
┃ DEBUG get locales/pt-PT.json
┃  11% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fpt-PT.json with request_id: b58a63b0-338d-49e1-91c0-fb25c4e47f25
┃ DEBUG get locales/sv.json
┃  13% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fsv.json with request_id: e51362a6-36e7-4d1f-a56f-7df3df1cb25c
┃ DEBUG get templates/404.json
┃  14% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2F404.json with request_id: cee871c7-5c15-4559-9fc4-6743604a5240
┃ DEBUG get templates/article.json
┃  16% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=locales%2Fnl.json with request_id: f66bdf67-e9b2-4fc4-ae79-b9056e24e13a
┃ DEBUG get templates/blog.json
┃  17% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Farticle.json with request_id: 25e4662a-2264-430a-8897-4331d72e867f
┃ DEBUG get templates/cart.json
┃  19% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fblog.json with request_id: bb3dbb14-1369-46c5-b917-6f09586673d9
┃ DEBUG get templates/collection.black-friday-accessories.json
┃  20% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcart.json with request_id: 2a1375e5-652d-413e-9164-6d5204a1f12a
┃ DEBUG get templates/collection.black-friday-kategori.json
┃  22% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcollection.black-friday-accessories.json with request_id: 4d4d2d26-2da5-4791-8327-13118cabdde5
┃ DEBUG get templates/collection.bm2023-accessories.json
┃  23% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcollection.black-friday-kategori.json with request_id: be1ab575-6a6b-469d-8211-2424c4e98376
┃ DEBUG get templates/collection.json
┃  25% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcollection.bm2023-accessories.json with request_id: 9f157354-f5ca-4457-81de-6a5c0e1172f0
┃ DEBUG get templates/collection.sweet-black-deals.json
┃  26% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcollection.json with request_id: 0d8a24d7-be0e-4348-9b0b-30907ef802f9
┃ DEBUG get templates/customers/account.json
┃  27% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Faccount.json with request_id: a44c52bc-c46f-4a28-b16a-fa80b1c9655f
┃ DEBUG get templates/customers/activate_account.json
┃  29% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcollection.sweet-black-deals.json with request_id: 17929364-c7f7-461f-87ee-36be89fc0b43
┃ DEBUG get templates/customers/addresses.json
┃  30% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Factivate_account.json with request_id: 576c9ca8-fa2e-4448-808f-dd91d10adf24
┃ DEBUG get templates/customers/login.json
┃  32% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Faddresses.json with request_id: d6781a5b-f648-4706-9a19-edb8928c8c26
┃ DEBUG get templates/customers/order.json
┃  33% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Forder.json with request_id: 80ddb067-7775-4dae-a5ef-aa113e7ce005
┃ DEBUG get templates/customers/register.json
┃  35% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Flogin.json with request_id: d74d1603-f1b5-4cb9-902b-572ef19fb0a6
┃ DEBUG get templates/customers/reset_password.json
┃  36% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Fregister.json with request_id: 06f7c082-f887-4599-bd85-35f9a266b6b0
┃ DEBUG get templates/index.context.7736b13e-60bd-471f-8c62-64730da78cfd.json
┃  38% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fcustomers%2Freset_password.json with request_id: c913b4c9-9097-4e60-93d0-39a243f51e59
┃ DEBUG get templates/index.json
┃  39% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Findex.context.7736b13e-60bd-471f-8c62-64730da78cfd.json with request_id: a9a251cf-f360-4e1a-8eef-2b3e49c57cf1
┃ DEBUG get templates/list-collections.json
┃  41% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Findex.json with request_id: e3ff6d9b-51e5-4ba3-a0b1-fa1f637d546d
┃ DEBUG get templates/page.adidas-storrelsesguide.json
┃  42% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Flist-collections.json with request_id: e5ed34ca-c195-4120-b59f-e3d6164b9570
┃ DEBUG get templates/page.contact.json
┃  44% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.adidas-storrelsesguide.json with request_id: 72a5d462-789f-440d-aa19-9bf4bf66950b
┃ DEBUG get templates/page.eftersalgsmarkedet.json
┃  45% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.contact.json with request_id: 3efbe2e4-f658-48ab-982f-53f2ea80d4d2
┃ DEBUG get templates/page.faq.json
┃  47% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.eftersalgsmarkedet.json with request_id: 956a6554-b03b-4812-be37-ffe452dcae1a
┃ DEBUG get templates/page.handelsbetingelser.json
┃  48% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.faq.json with request_id: 4173b71f-0cc7-4e0d-863f-6d7a7903550b
┃ DEBUG get templates/page.jobside.json
┃  50% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.handelsbetingelser.json with request_id: 1ed74da2-461d-4c3a-9fb6-3348271345fe
┃ DEBUG get templates/page.jordan-stoerrelsesguide.json
┃  51% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.jobside.json with request_id: dd4e767d-19c0-4ebb-927d-62a1fd896b7b
┃ DEBUG get templates/page.json
┃  52% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.jordan-stoerrelsesguide.json with request_id: e93c881e-1c6b-497c-9fa4-2c9c47dc8727
┃ DEBUG get templates/page.kontakt-1.json
┃  54% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.json with request_id: 5036f203-9218-4955-b7a3-65ddca5726d0
┃ DEBUG get templates/page.levering.json
┃  55% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.kontakt-1.json with request_id: ef8571a5-1f9d-4855-93dc-a5e1b8d84c38
┃ DEBUG get templates/page.new-balance-guide.json
┃  57% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.levering.json with request_id: 19d39e60-28fe-4fa7-a7f1-12dfdb2b8803
┃ DEBUG get templates/page.nike-stoerrelsesguide.json
┃  58% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.new-balance-guide.json with request_id: be976761-7fcf-414b-9a0c-a397042f1a8d
┃ DEBUG get templates/page.om-os-2.json
┃  60% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.om-os-2.json with request_id: 08b625af-2454-4758-9f49-a94a7475883b
┃ DEBUG get templates/page.om-os.json
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.nike-stoerrelsesguide.json with request_id: e97b521b-c607-4393-8359-9198f3df6030
┃  61% 
┃ DEBUG get templates/page.oversigt-stoerrelsesguides.json
┃  63% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.om-os.json with request_id: b56c5095-cb1a-4806-834b-c9ed2518da73
┃ DEBUG get templates/page.prisgaranti.json
┃  64% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.oversigt-stoerrelsesguides.json with request_id: face36e4-848b-405d-9e6a-42897b8b3385
┃ DEBUG get templates/page.returnering-1.json
┃  66% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.prisgaranti.json with request_id: cef29e1c-30ac-4eea-9878-0067a5f70b9c
┃ DEBUG get templates/page.returnering.json
┃  67% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.returnering-1.json with request_id: 84c394d2-be0d-46f2-bd8e-00f1cadd2660
┃  69% 
┃ DEBUG get templates/page.testjobside.json
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.returnering.json with request_id: 43ba20ee-bf1a-4efd-a7ad-c40c532f6940
┃ DEBUG get templates/page.wide.json
┃  70% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.testjobside.json with request_id: 0563f1ed-be27-49a3-9c41-5dfc869be9c9
┃ DEBUG get templates/page.yeezy-slide-stoerrelsesgui.json
┃  72% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.wide.json with request_id: 11798201-b995-46c9-9fe0-ec8e921626f0
┃ DEBUG get templates/page.yeezy-stoerrelsesguide.json
┃  73% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.yeezy-slide-stoerrelsesgui.json with request_id: bff3a0a2-b3ec-4757-aa3f-e40eb8116bb1
┃ DEBUG get templates/password.json
┃  75% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpage.yeezy-stoerrelsesguide.json with request_id: 2c7476d5-6e32-4b94-b0b2-b1ab9be79688
┃ DEBUG get templates/product.accessories.context.7736b13e-60bd-471f-8c62-64730da78cfd.json
┃  76% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fpassword.json with request_id: 16ac968d-82ec-46da-96c6-de5d871f755c
┃ DEBUG get templates/product.accessories.context.dk.json
┃  77% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.accessories.context.7736b13e-60bd-471f-8c62-64730da78cfd.json with request_id: 44e783c7-4434-419e-8e25-51429f17346b
┃ DEBUG get templates/product.accessories.json
┃  79% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.accessories.context.dk.json with request_id: 9c33d2af-d9e6-42b0-b8a4-179ab6cd7d9c
┃ DEBUG get templates/product.context.7736b13e-60bd-471f-8c62-64730da78cfd.json
┃  80% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.accessories.json with request_id: 79f1035e-e1c1-4d24-b8e4-3770fc129401
┃ DEBUG get templates/product.crease-protectors.json
┃  82% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.context.7736b13e-60bd-471f-8c62-64730da78cfd.json with request_id: 7090efcf-72a3-48ab-9b95-34061267e3e5
┃ DEBUG get templates/product.grails-der-kan-koebes-2.json
┃  83% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.crease-protectors.json with request_id: 5864dc1a-bf2a-46c4-86ae-d09d57568f46
┃ DEBUG get templates/product.grails-der-kan-koebes.json
┃  85% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.grails-der-kan-koebes-2.json with request_id: 141aad62-032f-4cbb-a19c-496d86587765
┃ DEBUG get templates/product.grails.context.7736b13e-60bd-471f-8c62-64730da78cfd.json
┃  86% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.grails-der-kan-koebes.json with request_id: 7dab2508-5288-4581-be2f-fb87ff0b44ac
┃ DEBUG get templates/product.grails.json
┃  88% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.grails.context.7736b13e-60bd-471f-8c62-64730da78cfd.json with request_id: 2ab77845-4309-45c9-89b7-6ba67189ae89
┃ DEBUG get templates/product.json
┃  89% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.grails.json with request_id: 9f636a15-4847-4d8e-ba6d-dc9b6498e7dd
┃ DEBUG get templates/product.preorder.json
┃  91% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.json with request_id: 562059fb-7627-4302-b0e0-ef0d7b0be367
┃ DEBUG get templates/product.smykker.json
┃  92% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.preorder.json with request_id: 2a9189b7-0427-4643-9934-27fa6db66d1b
┃ DEBUG get templates/product.toej.context.7736b13e-60bd-471f-8c62-64730da78cfd.json
┃  94% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.smykker.json with request_id: 377e444d-f868-40e0-a3e4-40b4c19e7898
┃ DEBUG get templates/product.toej.json
┃  95% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.toej.context.7736b13e-60bd-471f-8c62-64730da78cfd.json with request_id: ea6f9c37-1e89-4f7f-adc6-66635a068545
┃ DEBUG get templates/search.json
┃  97% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fproduct.toej.json with request_id: f60e55e3-5442-4845-96da-ca7cb2bedad6
┃  98% 
┃ DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes/163087810877/assets.json?asset%5Bkey%5D=templates%2Fsearch.json with request_id: 40295f11-8052-4ae3-99a0-415b5ba519c1
┃  100%
┃  100%
25h┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (15.32s) 
✓ Theme pulled successfully.
2024-01-24T12:52:24.874Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /home/runner/work/TheSneakerStoreV3/TheSneakerStoreV3

2024-01-24T12:52:25.031Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 127 ms
With response headers:
 - x-request-id: 9cbfa81c-71da-4508-8663-0014953cf641

2024-01-24T12:52:25.033Z: Analytics event sent: {
  "command": "theme pull",
  "time_start": 1706100715624,
  "time_end": 1706100744865,
  "total_time": 29241,
  "success": true,
  "cli_version": "3.53.1",
  "ruby_version": "3.1.4",
  "node_version": "18.19.0",
  "is_employee": false,
  "uname": "linux amd64",
  "env_ci": true,
  "env_ci_platform": "github",
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\",\"@shopify/plugin-did-you-mean\",\"@shopify/theme\"]",
  "env_shell": "bash",
  "env_device_id": "ae655eea052b523bd5e86b29088c7c0dcaff1eb5",
  "env_cloud": "localhost",
  "env_package_manager": "unknown",
  "cmd_all_timing_network_ms": 0,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/theme",
  "cmd_all_timing_active_ms": 29241,
  "cmd_all_exit": "ok",
  "args": "--only config/settings_data.json locales/*.json templates/**/*.json templates/*.json sections/*.json --live --verbose",
  "env_plugin_installed_all": "[\"@shopify/cli\",\"@shopify/plugin-did-you-mean\",\"@shopify/theme\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-01-24T12:52:25.034Z: Completed command theme pull
  • 12:53:18 ERROR  » update templates/index.context.7736b13e-60bd-471f-8c62-64730da78cfd.json:
  Parent filename 'index.json' does not exist. Please enter a valid filename
  • 12:53:24 ERROR  » update templates/product.accessories.context.7736b13e-60bd-471f-8c62-64730da78cfd.json:
  Parent filename 'product.accessories.json' does not exist. Please enter a valid filename
  • 12:53:24 ERROR  » update templates/product.accessories.context.dk.json:
  Parent filename 'product.accessories.json' does not exist. Please enter a valid filename
  • 12:53:25 ERROR  » update templates/product.context.7736b13e-60bd-471f-8c62-64730da78cfd.json:
  Parent filename 'product.json' does not exist. Please enter a valid filename
  • 12:53:26 ERROR  » update templates/product.grails.context.7736b13e-60bd-471f-8c62-64730da78cfd.json:
  Parent filename 'product.grails.json' does not exist. Please enter a valid filename
  • 12:53:27 ERROR  » update templates/product.toej.context.7736b13e-60bd-471f-8c62-64730da78cfd.json:
  Parent filename 'product.toej.json' does not exist. Please enter a valid filename
{"theme":{"id":164973674813,"name":"theme-3","role":"unpublished","shop":"thesneakstorese.myshopify.com","editor_url":"https://thesneakstorese.myshopify.com/admin/themes/164973674813/editor","preview_url":"https://thesneakstorese.myshopify.com/?preview_theme_id=164973674813"},"warning":"Theme pushed with errors."}

Reproduction steps

  1. I uploaded a theme on github excluding the following /src/config/settings_data.json /src/locales /src/templates/*/.json /src/sections/*.json
  2. In my github workflow i tried to pull the settings from the live theme using --only config/settings_data.json locales/*.json templates/*/.json templates/.json sections/.json
  3. I get the errors

Operating System

MacOS Sonoma

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

3.53.1

Shell

No response

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

No response

What language and version are you using in your application?

No response

github-actions[bot] commented 5 months ago

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.

knjshimi commented 5 months ago

Has this issue been solved?

Mathias-Givskov commented 3 months ago

I also wanna know if this has been resolved?

JasonPing6 commented 2 months ago

Need to reopen this issue

Mathias-Givskov commented 1 month ago

@anders-christiansen did you ever find a solution?

anders-christiansen commented 1 month ago

@Mathias-Givskov

Update:

When pulling contextual files to a Shopify theme with no JSON files, we're encountering an error. This error is because we maintain a single codebase across multiple stores, and we don't push JSON files with store-specific settings. Instead, we pull settings from the live theme during GitHub Actions when pushing changes. Which means when we pull the JSON files from the live theme, the theme we are updating has no JSON files at all.

This is an issue because:

  1. Shopify pushes contextual templates before their parent files. For example, "templates/index.context.7736b13e-60bd-471f-8c62-64730da78cfd.json" is pushed before "index.json".
  2. This sequence causes the deploy step to fail.

As a result, while the deploy step fails, the theme is pushed to the store, but its missing the contextual files.

To fix this issue, I've implemented a hacky quick fix:

I push in 2 steps:

  1. I dont push contextuals in the first step, so everything except contextuals.

  2. I then perform a second push to the same theme that was just pushed in the previous step, which now contains all the parent files for the contextuals.

This approach works because the second push targets a theme that now contains all the parent files for the contextuals. With parent files, the contextual files can be pushed.

While this solution works, it's admittedly not great. It was a quick fix to avoid spending a lot of time, with the hope that it will be resolved by Shopify.

anders-christiansen commented 2 weeks ago

@nickwesselman @karreiro