claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] statsig sdk not respecting https_proxy/HTTPS_PROXY

Open jdx opened this issue 2 months ago • 5 comments

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

jdx avatar Nov 07 '25 21:11 jdx