mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-04-03 00:09:22 -06:00
bug: Network Connectivity Problems with HTTPS over HTTP Proxy on Windows (Clash) - AI calls fail, curl and specific Node.js agent succeed, Clash logs absent #709
Labels
No labels
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:installation
area:installation
area:installation
area:installation
area:installation
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:vscode-extension
area:vscode-extension
area:vscode-extension
area:vscode-extension
area:vscode-extension
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
help wanted
help wanted
help wanted
help wanted
help wanted
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
integration request
integration request
integration request
integration request
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
low-priority
low-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
provider:anthropic
provider:anthropic
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:gemini-cli
provider:openai
provider:perplexity
question
question
question
question
question
question
question
question
question
question
question
question
question
question
refactor
refactor
wontfix
wontfix
wontfix
wontfix
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/claude-task-master#709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pawaovo on 5/17/2025
I'm experiencing persistent network connectivity issues when using Taskmaster-AI (both via Cursor MCP and CLI) in my Windows environment where an HTTP proxy (Clash,
http://127.0.0.1:7897) is required to access external APIs like XAI or OpenAI. AI-driven commands likeparse_prdconsistently fail with connection timeouts.Environment:
http://127.0.0.1:7897.npx(May 17, 2025)Problem Description:
When Taskmaster-AI attempts to make HTTPS requests to AI service APIs (e.g.,
api.x.ai:443,api.openai.com:443) through the configured HTTP proxy, the requests fail with connection timeouts (e.g.,ETIMEDOUT,ECONNRESET). This occurs even whenHTTPS_PROXYandHTTP_PROXYenvironment variables are correctly set for the Taskmaster-AI MCP service in.cursor/mcp.jsonor exported in the shell for CLI use. Throughout all failed and successful Node.js tests described below, no relevant connection attempt logs appear in the Clash client's log panel.Key Debugging Steps and Findings:
curlTest (SUCCESSFUL):A
curlcommand can successfully access the XAI API through the Clash proxy:This confirms the API key is valid (using a real key for actual test), the proxy is working for
curl, and the network path is open.Node.js
CONNECTTest (SUCCESSFUL):A simple Node.js script (
test_connect.js, see attached/linked below) that only performs an HTTPCONNECTrequest to the proxy for the targetapi.x.ai:443succeeds. The proxy returns a200 OKstatus, indicating the tunnel can be established.Clash logs: No entries observed during this test.
Node.js HTTPS Request Test (via
HTTPS_PROXYenv var - FAILED):A Node.js script (
test_proxy_env.js, see attached/linked - this script relies purely onHTTPS_PROXYenv var) attempting a full HTTPS request toapi.x.aifails withETIMEDOUT(or sometimesECONNRESET).Clash logs: No entries observed during this test.
Node.js HTTPS Request Test (with
https-proxy-agent- SUCCESSFUL API CALL):The same Node.js script, when modified to use the
https-proxy-agentlibrary to explicitly manage the HTTPS-over-HTTP-proxy connection (test_proxy_hpa.js, see attached/linked), succeeds in connecting to the XAI API and retrieving a valid JSON response.Clash logs: Surprisingly, still no entries observed in Clash logs even during this successful API call via the Node.js script and
https-proxy-agent. This is perplexing but the API call itself does succeed.Taskmaster-AI Code Insight:
Taskmaster-AI's codebase includes
import https from 'https';, suggesting it likely uses Node.js's built-inhttpsmodule for requests. This would explain why it exhibits the same proxying issues as test case #3 (failure when relying onHTTPS_PROXYenv var alone).Conclusion & Suggestion:
The evidence strongly suggests that Node.js's default mechanism for handling HTTPS requests via an HTTP proxy (using the
HTTPS_PROXYenvironment variable) is problematic or incompatible in this specific Windows + Clash + Node.js v20.9.0 environment. However, when a dedicated library likehttps-proxy-agentis used within a Node.js script, the API call succeeds, even if Clash logging behavior remains unusual.Given that Taskmaster-AI relies on the built-in
httpsmodule, it's highly susceptible to these same issues. The absence of Clash logs across all Node.js tests (successful or not) is an additional confounding factor that might point to deeper issues in how Node.js interacts with the network stack or this specific proxy on Windows, but the success withhttps-proxy-agentshows a viable path for Node.js applications.Could the Taskmaster-AI team please consider enhancing the tool's network request logic to use a more robust HTTPS proxy handling mechanism, such as integrating
https-proxy-agentor a similar library, when an HTTP/HTTPS proxy environment is detected? This would likely improve compatibility and reliability for users in environments requiring HTTP proxies, even if underlying system/proxy logging behaviors are inconsistent.Thank you for your time and this fantastic tool! Please let me know if any further information or testing from my end would be helpful.
Links to Test Scripts (Gist/Pastebin):
test_connect.json
test_proxy.json