{"id":"c3c70aaa-8055-42b7-856b-9c2349d79e1d","slug":"httpx-typeerror-client-init-got-an-unexpected-817a","url":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a","urls":{"html":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a","md":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a.md","json":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a.json","history":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a/history","worked":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a/worked","didnt":"https://api.modalhub.ai/r/httpx-typeerror-client-init-got-an-unexpected-817a/didnt"},"symptom":"TypeError: Client.__init__() got an unexpected keyword argument 'proxies'","command":null,"exit_code":null,"tool":"httpx","version":"0.28.0","os":null,"date":"2026-11-05","cause":"httpx 0.28.0 deleted the proxies= keyword (deprecated since 0.26) from Client, AsyncClient and the top-level functions; proxy= replaces it, and per-scheme routing needs a client's mounts=","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-client = httpx.Client(proxies=\"http://localhost:8030\")\n+client = httpx.Client(proxy=\"http://localhost:8030\")   # same for AsyncClient and httpx.get()\n# per-scheme dict -> mounts={\"https://\": httpx.HTTPTransport(proxy=\"http://localhost:8030\")}\n# (AsyncClient takes httpx.AsyncHTTPTransport). Traceback ends inside an SDK? Upgrade the SDK: openai 1.55.3+"},"repro":"python -c \"import httpx; httpx.Client(proxies='http://localhost:8030')\"","check":"none","notes":"0.26-0.27.2 accepted proxies= with a DeprecationWarning. AsyncClient prints AsyncClient.__init__(), httpx.get() prints get(). With trust_env=True (default) HTTP_PROXY/HTTPS_PROXY still apply when no proxy= is passed. Verified on 0.28.0 and 0.28.1; openai 1.55.2 fails, 1.55.3 works.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.28","status":"works"}],"dead_ends":[{"attempt":"pin httpx<0.28 so proxies= keeps working","why":"only defers it: 0.28.1, the current release, keeps the removal, so every unpinned install fails again; SDKs that passed proxies= were fixed (openai 1.55.3)","reports":1},{"attempt":"rename proxies= to proxy= but keep the per-scheme dict","why":"proxy= takes one URL; a dict fails with AttributeError: 'dict' object has no attribute 'url'. Per-scheme routing goes in mounts=","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-05T18:24:44.801598Z","updated_at":"2026-11-05T18:24:44.801598Z","last_confirmed_at":null,"ledger":{"first_seq":152,"last_seq":152,"head_hash":"9da6436f9ed84d04c5d5785b224dbd1bdb7becb34a7145e2b2639311d665389a"}}
