Lighthouse fails on preview theme but not on main theme
modulareverything opened this issue · 7 comments
When Lighthouse runs, it seems to create a new theme to run the tests on. For some reason though the theme it creates doesn't have any products, so Lighthouse fails whenever it tries to run on that page.
I've tested it with the theme URL it creates and the page doesn't exist, but if I test it without the preview_theme_id
param, it works fine.
Any suggestions?
Run shopify/lighthouse-ci-action@v1
/usr/bin/docker run --name cd98fffbd5bdba5e240d1969992b844ed0736_442e05 --label 4cd98f --workdir /github/workspace --rm -e INPUT_STORE -e INPUT_PASSWORD -e INPUT_ACCESS_TOKEN -e INPUT_LHCI_GITHUB_APP_TOKEN -e INPUT_LHCI_MIN_SCORE_PERFORMANCE -e INPUT_LHCI_MIN_SCORE_ACCESSIBILITY -e INPUT_PRODUCT_HANDLE -e INPUT_COLLECTION_HANDLE -e INPUT_THEME_ROOT -e INPUT_LHCI_GITHUB_TOKEN -e INPUT_APP_ID -e INPUT_APP_PASSWORD -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/armac-martin-plus/armac-martin-plus":"/github/workspace" 4cd98f:ffbd5bdba5e240d1969992b844ed0736
==============================
Configuring shopify CLI
Will run Lighthouse CI on https://20mdsom09x02.myshopify.com
==============================
Creating development theme
ERROR update templates/product.json:
Dynamic source 'product.metafields.products.product_details | metafield_tag' does not exist.
{"theme":{"id":133713592533,"name":"Development (9f1a15-47fcf9a3a131)","role":"development","shop":"20mdsom09x02.myshopify.com","editor_url":"https://20mdsom09x02.myshopify.com/admin/themes/133713592533/editor","preview_url":"https://20mdsom09x02.myshopify.com/?preview_theme_id=133713592533"}}
==============================
Configuring Lighthouse CI
==============================
Running Lighthouse CI
✅ .lighthouseci/ directory writable
✅ Configuration file found
✅ Chrome installation found
✅ GitHub token set
Healthcheck passed!
Getting a new page...
Getting password cookie...
Getting preview cookie...
Running Lighthouse 3 time(s) on https://20mdsom09x02.myshopify.com/?preview_theme_id=133713592533&_fd=0&pb=0
Run #1...done.
Run #2...done.
Getting a new page...
Run #3...done.
Getting password cookie...
Getting preview cookie...
Running Lighthouse 3 time(s) on https://20mdsom09x02.myshopify.com/products/cotswold-cup-pull?preview_theme_id=133713592533&_fd=0&pb=0
Run #1...failed!
Error: Lighthouse failed with exit code 1
at ChildProcess.<anonymous> (/.node/lib/node_modules/@lhci/cli/src/collect/node-runner.js:120:21)
at ChildProcess.emit (events.js:375:28)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
{
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/91.0.4472.114 Safari/537.36",
"environment": {
"networkUserAgent": "",
"hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/91.0.4472.114 Safari/537.36",
"benchmarkIndex": 1314.5,
"credits": {}
},
"lighthouseVersion": "8.0.0",
"fetchTime": "2022-06-30T14:39:10.406Z",
"requestedUrl": "https://20mdsom09x02.myshopify.com/products/cotswold-cup-pull?preview_theme_id=133713592533&_fd=0&pb=0",
"finalUrl": "https://20mdsom09x02.myshopify.com/products/cotswold-cup-pull?preview_theme_id=133713592533&_fd=0&pb=0",
"runWarnings": [
"The page may not be loading as expected because your test URL (https://20mdsom09x02.myshopify.com/products/cotswold-cup-pull?preview_theme_id=133713592533&_fd=0&pb=0) was redirected to https://20mdsom09x02.myshopify.com/products/cotswold-cup-pull?_fd=0&pb=0. Try testing the second URL directly.",
"Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 404)"
],
"runtimeError": {
"code": "ERRORED_DOCUMENT_REQUEST",
"message": "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 404)"
},
"audits": {
"is-on-https": {
"id": "is-on-https",
"title": "Uses HTTPS",
"description": "All sites should be protected with HTTPS, even ones that don't handle sensitive data. This includes avoiding [mixed content](https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content), where some resources are loaded over HTTP despite the initial request being served over HTTPS. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://web.dev/is-on-https/).",
"score": null,
"scoreDisplayMode": "error",
"errorMessage": "Required devtoolsLogs gatherer did not run."
},
"redirects-http": {
"id": "redirects-http",
"title": "Redirects HTTP traffic to HTTPS",
"description": "If you've already set up HTTPS, make sure that you redirect all HTTP traffic to HTTPS in order to enable secure web features for all your users. [Learn more](https://web.dev/redirects-http/).",
"score": null,
"scoreDisplayMode": "error",
"errorMessage": "Required HTTPRedirect gatherer did not run."
},
"service-worker": {
"id": "service-worker",
"title": "Registers a service worker that controls page and `start_url`",
"description": "The service worker is the technology that enables your app to use many Progressive Web App features, such as offline, add to homescreen, and push notifications. [Learn more](https://web.dev/service-worker/).",
"score": null,
"scoreDisplayMode": "error",
"errorMessage": "Required ServiceWorker gatherer did not run."
},
"viewport": {
"id": "viewport",
"title": "Has a `<meta name=\"viewport\">` tag with `width` or `initial-scale`",
"description": "Add a `<meta name=\"viewport\">` tag to optimize your app for mobile screens. [Learn more](https://web.dev/viewport/).",
"score": null,
"scoreDisplayMode": "error",
"errorMessage": "Required MetaElements gatherer did not run."
},
"first-contentful-paint": {
"id": "first-contentful-paint",
"title": "First Contentful Paint",
"description": "First Contentful Paint marks the time at which the first text or image is painted. [Learn more](https://web.dev/first-contentful-paint/).",
"score": null,
"scoreDisplayMode": "error",
"errorMessage": "Require
Thu, 30 Jun 2022 14:39:10 GMT config:warn IFrameElements gatherer requested, however no audit requires it.
Thu, 30 Jun 2022 14:39:10 GMT config:warn FormElements gatherer requested, however no audit requires it.
Thu, 30 Jun 2022 14:39:10 GMT status Connecting to browser
Thu, 30 Jun 2022 14:39:10 GMT status Resetting state with about:blank
Thu, 30 Jun 2022 14:39:10 GMT status Benchmarking machine
Thu, 30 Jun 2022 14:39:11 GMT status Initializing…
Thu, 30 Jun 2022 14:39:11 GMT status Running defaultPass pass CSSUsage, JsUsage, ViewportDimensions, ConsoleMessages, AnchorElements, ImageElements, LinkElements, MetaElements, ScriptElements, IFrameElements, FormElements, MainDocumentContent, GlobalListeners, AppCacheManifest, Doctype, DOMStats, OptimizedImages, PasswordInputsWithPreventedPaste, ResponseCompression, TagsBlockingFirstPaint, FontSize, EmbeddedContent, RobotsTxt, TapTargets, Accessibility, TraceElements, InspectorIssues, SourceMaps, FullPageScreenshot
Thu, 30 Jun 2022 14:39:11 GMT status Resetting state with about:blank
Thu, 30 Jun 2022 14:39:11 GMT status Cleaning browser cache
Thu, 30 Jun 2022 14:39:11 GMT status Preparing network conditions
Thu, 30 Jun 2022 14:39:11 GMT status Beginning devtoolsLog and trace
Thu, 30 Jun 2022 14:39:11 GMT status Loading page & waiting for onload
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: CSSUsage
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: JsUsage
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: ViewportDimensions
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: ConsoleMessages
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: AnchorElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: ImageElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: LinkElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: MetaElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: ScriptElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: IFrameElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: FormElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: MainDocumentContent
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: GlobalListeners
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: AppCacheManifest
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: Doctype
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: DOMStats
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: OptimizedImages
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: PasswordInputsWithPreventedPaste
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: ResponseCompression
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: TagsBlockingFirstPaint
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: FontSize
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: EmbeddedContent
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: RobotsTxt
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: TapTargets
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: Accessibility
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: TraceElements
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: InspectorIssues
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: SourceMaps
Thu, 30 Jun 2022 14:39:14 GMT status Gathering in-page: FullPageScreenshot
Thu, 30 Jun 2022 14:39:14 GMT status Gathering trace
Thu, 30 Jun 2022 14:39:14 GMT status Gathering devtoolsLog & network records
Thu, 30 Jun 2022 14:39:14 GMT GatherRunner:error Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 404) https://20mdsom09x02.myshopify.com/products/cotswold-cup-pull?_fd=0&pb=0
Thu, 30 Jun 2022 14:39:14 GMT status Disconnecting from browser...
Thu, 30 Jun 2022 14:39:14 GMT status Analyzing and running audits...
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Uses HTTPS
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit is-on-https, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Redirects HTTP traffic to HTTPS
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn HTTPRedirect gatherer, required by audit redirects-http, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Registers a service worker that controls page and `start_url`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ServiceWorker gatherer, required by audit service-worker, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Has a `<meta name="viewport">` tag with `width` or `initial-scale`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn MetaElements gatherer, required by audit viewport, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: First Contentful Paint
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit first-contentful-paint, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Largest Contentful Paint
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit largest-contentful-paint, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: First Meaningful Paint
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit first-meaningful-paint, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Speed Index
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit speed-index, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Screenshot Thumbnails
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit screenshot-thumbnails, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Final Screenshot
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit final-screenshot, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Total Blocking Time
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit total-blocking-time, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Max Potential First Input Delay
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit max-potential-fid, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Cumulative Layout Shift
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit cumulative-layout-shift, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: No browser errors logged to the console
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ConsoleMessages gatherer, required by audit errors-in-console, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Initial server response time was short
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit server-response-time, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Time to Interactive
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit interactive, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: User Timing marks and measures
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit user-timings, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoid chaining critical requests
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit critical-request-chains, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoid multiple page redirects
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit redirects, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Web app manifest and service worker meet the installability requirements
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Provides a valid `apple-touch-icon`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn LinkElements gatherer, required by audit apple-touch-icon, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Configured for a custom splash screen
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Sets a theme color for the address bar.
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn MetaElements gatherer, required by audit themed-omnibox, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Manifest has a maskable icon
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Content is sized correctly for the viewport
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ViewportDimensions gatherer, required by audit content-width, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Displays images with correct aspect ratio
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ImageElements gatherer, required by audit image-aspect-ratio, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Serves images with appropriate resolution
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ImageElements gatherer, required by audit image-size-responsive, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Fonts with `font-display: optional` are preloaded
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit preload-fonts, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids deprecated APIs
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ConsoleMessages gatherer, required by audit deprecations, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Minimizes main-thread work
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit mainthread-work-breakdown, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: JavaScript execution time
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit bootup-time, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Preload key requests
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit uses-rel-preload, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Preconnect to required origins
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit uses-rel-preconnect, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: All text remains visible during webfont loads
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit font-display, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Diagnostics
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit diagnostics, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Network Requests
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit network-requests, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Network Round Trip Times
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit network-rtt, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Server Backend Latencies
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit network-server-latency, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Tasks
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit main-thread-tasks, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Metrics
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit metrics, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Performance budget
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit performance-budget, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Timing budget
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit timing-budget, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Keep request counts low and transfer sizes small
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit resource-summary, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Minimize third-party usage
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit third-party-summary, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Lazy load third-party resources with facades
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit third-party-facades, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Largest Contentful Paint element
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit largest-contentful-paint-element, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoid large layout shifts
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit layout-shift-elements, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoid long main-thread tasks
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit long-tasks, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids `unload` event listeners
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn GlobalListeners gatherer, required by audit no-unload-listeners, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoid non-composited animations
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn TraceElements gatherer, required by audit non-composited-animations, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Image elements have explicit `width` and `height`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ImageElements gatherer, required by audit unsized-images, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Page has valid source maps
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ScriptElements gatherer, required by audit valid-source-maps, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Preload Largest Contentful Paint image
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit preload-lcp-image, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Ensure CSP is effective against XSS attacks
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit csp-xss, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Full-page screenshot
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn FullPageScreenshot gatherer, required by audit full-page-screenshot, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Script Treemap Data
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn traces gatherer, required by audit script-treemap-data, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Site works cross-browser
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Page transitions don't feel like they block on the network
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Each page has a URL
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[accesskey]` values are unique
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit accesskeys, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[aria-*]` attributes match their roles
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-allowed-attr, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `button`, `link`, and `menuitem` elements have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-command-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[aria-hidden="true"]` is not present on the document `<body>`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-hidden-body, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[aria-hidden="true"]` elements do not contain focusable descendents
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-hidden-focus, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA input fields have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-input-field-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA `meter` elements have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-meter-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA `progressbar` elements have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-progressbar-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[role]`s have all required `[aria-*]` attributes
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-required-attr, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Elements with an ARIA `[role]` that require children to contain a specific `[role]` have all required children.
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-required-children, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[role]`s are contained by their required parent element
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-required-parent, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[role]` values are valid
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-roles, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA toggle fields have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-toggle-field-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA `tooltip` elements have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-tooltip-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA `treeitem` elements have accessible names
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-treeitem-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[aria-*]` attributes have valid values
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-valid-attr-value, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[aria-*]` attributes are valid and not misspelled
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit aria-valid-attr, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Buttons have an accessible name
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit button-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: The page contains a heading, skip link, or landmark region
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit bypass, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Background and foreground colors have a sufficient contrast ratio
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit color-contrast, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<dl>`'s contain only properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements.
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit definition-list, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Definition list items are wrapped in `<dl>` elements
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit dlitem, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Document has a `<title>` element
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit document-title, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[id]` attributes on active, focusable elements are unique
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit duplicate-id-active, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: ARIA IDs are unique
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit duplicate-id-aria, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: No form fields have multiple labels
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit form-field-multiple-labels, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<frame>` or `<iframe>` elements have a title
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit frame-title, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Heading elements appear in a sequentially-descending order
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit heading-order, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<html>` element has a `[lang]` attribute
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit html-has-lang, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<html>` element has a valid value for its `[lang]` attribute
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit html-lang-valid, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Image elements have `[alt]` attributes
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit image-alt, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<input type="image">` elements have `[alt]` text
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit input-image-alt, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Form elements have associated labels
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit label, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Links have a discernible name
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit link-name, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Lists contain only `<li>` elements and script supporting elements (`<script>` and `<template>`).
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit list, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: List items (`<li>`) are contained within `<ul>` or `<ol>` parent elements
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit listitem, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: The document does not use `<meta http-equiv="refresh">`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit meta-refresh, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[user-scalable="no"]` is not used in the `<meta name="viewport">` element and the `[maximum-scale]` attribute is not less than 5.
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit meta-viewport, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<object>` elements have `[alt]` text
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit object-alt, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: No element has a `[tabindex]` value greater than 0
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit tabindex, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Cells in a `<table>` element that use the `[headers]` attribute refer to table cells within the same table.
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit td-headers-attr, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<th>` elements and elements with `[role="columnheader"/"rowheader"]` have data cells they describe.
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit th-has-data-cells, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `[lang]` attributes have a valid value
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit valid-lang, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: `<video>` elements contain a `<track>` element with `[kind="captions"]`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Accessibility gatherer, required by audit video-caption, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Custom controls have associated labels
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Custom controls have ARIA roles
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: User focus is not accidentally trapped in a region
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Interactive controls are keyboard focusable
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Interactive elements indicate their purpose and state
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: The page has a logical tab order
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: The user's focus is directed to new content added to the page
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Offscreen content is hidden from assistive technology
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: HTML5 landmark elements are used to improve navigation
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Visual order on the page follows DOM order
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Uses efficient cache policy on static assets
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit uses-long-cache-ttl, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids enormous network payloads
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit total-byte-weight, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Defer offscreen images
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ImageElements gatherer, required by audit offscreen-images, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Eliminate render-blocking resources
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn TagsBlockingFirstPaint gatherer, required by audit render-blocking-resources, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Minify CSS
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn CSSUsage gatherer, required by audit unminified-css, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Minify JavaScript
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ScriptElements gatherer, required by audit unminified-javascript, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Reduce unused CSS
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn CSSUsage gatherer, required by audit unused-css-rules, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Reduce unused JavaScript
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn JsUsage gatherer, required by audit unused-javascript, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Serve images in next-gen formats
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn OptimizedImages gatherer, required by audit modern-image-formats, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Efficiently encode images
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn OptimizedImages gatherer, required by audit uses-optimized-images, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Enable text compression
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ResponseCompression gatherer, required by audit uses-text-compression, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Properly size images
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ImageElements gatherer, required by audit uses-responsive-images, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Use video formats for animated content
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit efficient-animated-content, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Remove duplicate modules in JavaScript bundles
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit duplicated-javascript, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoid serving legacy JavaScript to modern browsers
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit legacy-javascript, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids Application Cache
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn AppCacheManifest gatherer, required by audit appcache-manifest, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Page has the HTML doctype
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn Doctype gatherer, required by audit doctype, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Properly defines charset
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn MainDocumentContent gatherer, required by audit charset, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids an excessive DOM size
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn DOMStats gatherer, required by audit dom-size, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Links to cross-origin destinations are safe
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn AnchorElements gatherer, required by audit external-anchors-use-rel-noopener, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids requesting the geolocation permission on page load
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ConsoleMessages gatherer, required by audit geolocation-on-start, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: No issues in the `Issues` panel in Chrome Devtools
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn InspectorIssues gatherer, required by audit inspector-issues, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids `document.write()`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ConsoleMessages gatherer, required by audit no-document-write, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids front-end JavaScript libraries with known security vulnerabilities
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Detected JavaScript libraries
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Avoids requesting the notification permission on page load
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ConsoleMessages gatherer, required by audit notification-on-start, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Allows users to paste into password fields
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn PasswordInputsWithPreventedPaste gatherer, required by audit password-inputs-can-be-pasted-into, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Use HTTP/2
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit uses-http2, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Uses passive listeners to improve scrolling performance
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn ConsoleMessages gatherer, required by audit uses-passive-event-listeners, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Document has a meta description
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn MetaElements gatherer, required by audit meta-description, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Page has successful HTTP status code
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn devtoolsLogs gatherer, required by audit http-status-code, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Document uses legible font sizes
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn FontSize gatherer, required by audit font-size, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Links have descriptive text
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn AnchorElements gatherer, required by audit link-text, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Links are crawlable
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn AnchorElements gatherer, required by audit crawlable-anchors, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Page isn’t blocked from indexing
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn MetaElements gatherer, required by audit is-crawlable, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: robots.txt is valid
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn RobotsTxt gatherer, required by audit robots-txt, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Tap targets are sized appropriately
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn MetaElements gatherer, required by audit tap-targets, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Document has a valid `hreflang`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn LinkElements gatherer, required by audit hreflang, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Document avoids plugins
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn EmbeddedContent gatherer, required by audit plugins, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Document has a valid `rel=canonical`
Thu, 30 Jun 2022 14:39:14 GMT Runner:warn LinkElements gatherer, required by audit canonical, did not run.
Thu, 30 Jun 2022 14:39:14 GMT status Auditing: Structured data is valid
Thu, 30 Jun 2022 14:39:14 GMT status Generating results...
Runtime error encountered: Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 404)
@modulareverything , were you ever able to get this worked out? I'm seeing this on my end as well and was confused as to why this was happening.
I can't actually remember if I ever got this resolved to be honest @jacob-giordano-saalt as it's getting on a year ago now
Hopefully, someone could take a look at it!
That's totally fair @modulareverything haha I really appreciate you replying though!
This is not an issue. The reason the action failed is stated at the top of the output:
ERROR update templates/product.json:
Dynamic source 'product.metafields.products.product_details | metafield_tag' does not exist.
{"theme":{"id":133713592533,"name":"Development (9f1a15-47fcf9a3a131)","role":"development","shop":"20mdsom09x02.myshopify.com","editor_url":"https://20mdsom09x02.myshopify.com/admin/themes/133713592533/editor","preview_url":"https://20mdsom09x02.myshopify.com/?preview_theme_id=133713592533"}}
Oh man, you're absolutely right. I don't know how I missed that. Thank you for pointing this out @dspeake !
This is not an issue. The reason the action failed is stated at the top of the output:
ERROR update templates/product.json: Dynamic source 'product.metafields.products.product_details | metafield_tag' does not exist. {"theme":{"id":133713592533,"name":"Development (9f1a15-47fcf9a3a131)","role":"development","shop":"20mdsom09x02.myshopify.com","editor_url":"https://20mdsom09x02.myshopify.com/admin/themes/133713592533/editor","preview_url":"https://20mdsom09x02.myshopify.com/?preview_theme_id=133713592533"}}
Well spotted but why would it only fail on the preview and not on the main theme?
Two possible reasons:
- The preview theme is not on the same store as the live theme.
- The preview theme as different template (
*.json
) files that reference different metafields.