502 Bad gateway

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

Theme

Expected behavior

I should be able to use the Shopify CLI normally and show the theme without error

Actual behavior

When I try to use the Shopify CLI and use the preview an error message appear “Failed to render storefront with status 502 (Bad Gateway).”

Reproduction steps

Just access the theme using Shopify CLI

Verbose output

2025-11-13T02:57:35.628Z: Analytics event sent: {
  "command": "theme language-server",
  "time_start": 1763002654792,
  "time_end": 1763002654815,
  "total_time": 23,
  "success": true,
  "cli_version": "3.87.1",
  "ruby_version": "",
  "node_version": "24.11.0",
  "is_employee": false,
  "uname": "windows amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "powershell",
  "env_device_id": "089f5b5eb5158b68036e66c7e25a1ac46d875fec",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "env_is_global": true,
  "env_auth_method": "device_auth",
  "env_is_wsl": false,
  "env_build_repository": "Shopify/cli",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_all_timing_network_ms": 0,
  "cmd_all_timing_prompts_ms": 1740,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/theme",
  "cmd_all_path_override": false,
  "cmd_all_timing_active_ms": -1718,
  "cmd_all_exit": "ok",
  "user_id": "51e00d8a-4cf4-42f7-912f-51d037c51c3d",
  "request_ids": [],
  "args": "",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "env_shopify_variables": "{}",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}

Operating system

Windows 11

CLI version

3.87.1

Shell

Git Bash

Nodejs version

v24.11.0