← Back to Dashboard
#8906 Cannot start Vite dev server with proxy env variables
Recommendation:KEEP OPEN
Difficulty:easy
Reasoning:
Local inspector fetch goes through global proxy. PR #11568 open with fix.
Suggested Action:
Review and merge PR #11568
Analysis Report
Issue Review: cloudflare/workers-sdk#8906
Summary
Vite dev server fails to start when proxy environment variables (HTTP_PROXY, etc.) are set.
Findings
- Created: 2025-04-11
- Updated: 2025-12-09
- Version: vite-plugin 1.0.5 → current
- Component: vite-plugin, miniflare
- Labels: bug, vite-plugin
- Comments: 2
Key Evidence
- Error: "TypeError: fetch failed" at InspectorProxyController.updateConnection
- Occurs when HTTP_PROXY environment variable is set
- Root cause: Wrangler sets global ProxyAgent for proxy env vars, but miniflare's local inspector fetch to 127.0.0.1 incorrectly goes through proxy
- PR #11568 opened (Dec 2025) by @Zuckjet to fix this - bypasses proxy for local inspector connections
- PR is currently OPEN, not merged
Recommendation
Status: KEEP OPEN
Reasoning: Valid bug with an open PR (#11568) that fixes the issue. The fix is straightforward: use a dedicated Agent for local inspector connections to bypass the global proxy. PR needs review and merge.
Action: Review and merge PR #11568 to close this issue.
Suggested Comment
PR #11568 has been opened to fix this issue by bypassing the proxy for local inspector connections. Once merged, this should resolve the problem.
Notes & Feedback (0)
No notes yet.