Repository navigation
Closed
Labels
Area: @shopify/cli@shopify/cli package issuesArea: @shopify/cli-kit@shopify/cli-kit package issuesArea: @shopify/theme@shopify/theme package issuesType: BugSomething isn't workingno-issue-activity
Description
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
The CLI should successfully render the storefront through the configured HTTP proxy.
Actual behavior
The CLI fails to render the storefront with a 502 Bad Gateway error, despite proper proxy configuration.
Verbose output
Verbose output
Failed to render storefront with status 502 (Bad Gateway).
URL: [REDACTED]
TypeError: fetch failed
at node:internal/deps/undici/undici:13510:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async render2 [...]
at async Object.handler [...]
at async Server.<anonymous> [...]
Reproduction steps
1.Set HTTP proxy environment variables:
$env:SHOPIFY_HTTP_PROXY = "http://127.0.0.1:PORT"
$env:SHOPIFY_HTTPS_PROXY = "http://127.0.0.1:PORT"
2.Run shopify theme dev -e development
3.CLI starts successfully and provides preview URLs
4.Immediately encounters 502 Bad Gateway error
### Operating System
Windows 11
### Shopify CLI version (`shopify --version`)
@shopify/cli/0.0.0-snapshot-20250313171017
### Shell
powershell
### Node version (run `node -v` if you're not sure)
v22.15.1
### What language and version are you using in your application?
_No response_Reacted by Yoni Chechik
Metadata
Metadata
Assignees
Labels
Area: @shopify/cli@shopify/cli package issuesArea: @shopify/cli-kit@shopify/cli-kit package issuesArea: @shopify/theme@shopify/theme package issuesType: BugSomething isn't workingno-issue-activity
Activity
jpallard6120 commentedon May 26, 2025
I have the exact same error here. Log output identical to @reeswell.
jpallard6120 commentedon May 26, 2025
Removing a plugin through
shopify plugin resetsolved the issue for me.reeswell commentedon May 27, 2025
Thank you for your response. However, when I tried
shopify plugins reset, it shows "Found 0 plugin" and the issue still persists.Here's what I've tried:
shopify plugins reset-> Result: "Found 0 plugin"My environment:
charlespwd commentedon Jun 12, 2025
Do you have docs for the SHOPIFY_HTTP_PROXY? Couldn't find anything.
charlespwd commentedon Jun 12, 2025
Looks l like a CLI core/kit issue
reeswell commentedon Jun 19, 2025
#5520
fredmanxu commentedon Jul 5, 2025
Same error, How did you finally solve it?
HowardTangOvO commentedon Jul 7, 2025
Same error, Is there any solution for this?
cmoaciopm commentedon Aug 3, 2025
Same error. Any update for this issue?
wmlutz commentedon Aug 8, 2025
I am also having this problem. I'm commenting so I get notifications if an answer pops up.
12 remaining items
github-actions commentedon Jan 22, 2026
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.
[-]502 Bad Gateway Error When Using HTTP Proxy with `shopify theme dev`[/-][+]Support SHOPIFY_HTTP(S)_PROXY usage in theme commands[/+]github-actions commentedon Mar 6, 2026
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.
YoniChechik commentedon Aug 18, 2026
still exists- please reopen @graygilmore
github-actions commentedon Oct 1, 2026
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.