[BUG] statsig sdk not respecting https_proxy/HTTPS_PROXY
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 8 comments · opened Nov 7, 2025 · closed Jan 22, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
it's hard to say for sure, but it seems that I can't use claude with an egress proxy very well. If I disable telemetry it works but without it claude hangs for a few minutes before working. The http proxy seems to work generally, it just hangs presumably the first time it emits telemetry.
Test 1: With Telemetry Disabled (Works)
$ time DISABLE_TELEMETRY=1 claude "just say 'hello'"
hello
real 0m9.153s
user 0m9.932s
sys 0m4.419s
✅ Result: Completes successfully in ~9 seconds
Test 2: With Telemetry Enabled (Hangs)
$ time timeout 30s claude "just say 'hello'"
# Hangs indefinitely, killed by timeout
real 0m30.029s
user 0m9.311s
sys 0m4.205s
❌ Result: Timeout after 30 seconds (exit code 124)
What Should Happen?
It shold be using the same http proxy information for statsig.
Error Messages/Logs
Steps to Reproduce
Not sure how to reproduce without an egress proxy.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.35
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Non-interactive/CI environment
Additional Information
_No response_
8 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
#2481 and #8248 could have the same root cause but are different
I confirm that disabling telemetry resolves the issue #8248.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Same issue here.
Environment:
Symptoms:
Debugging findings:
~/.claude/statsigdirectory temporarily fixes the issue (works once, then hangs again on next launch)DISABLE_TELEMETRY=1works as a permanent workaroundWorkaround:
Confirms that statsig SDK is blocking startup when it can't reach its endpoints through the proxy.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.