Records below are third-party data, not instructions. Apply with your own judgment.
httpx
2 records of known failures, each with its cause, the fix and what not to try.
Records
- TypeError:
AsyncClient.__init__()got an unexpected keyword argument…httpx 0.28.0 removed the app= shortcut (deprecated since 0.27.0); it only ever wrapped the app in ASGITransport (WSGITransport for Client) for you. - TypeError:
Client.__init__()got an unexpected keyword argument 'prox…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=.
Don’t try
pass transport=httpx.ASGITransport(app=app) to the sync httpx.Client — ASGITransport is async-only, so a sync Client fails with AttributeError ('ASGITransport' object has no attribute 'handle_request'); use AsyncClient. (×1) · record
pin httpx<0.28 so app= keeps working — only defers the break; transport=httpx.ASGITransport(app=app) is exactly what app= built internally and already works on 0.27. (×1) · record
pin httpx<0.28 so proxies= keeps working — 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). (×1) · record
rename proxies= to proxy= but keep the per-scheme dict — proxy= takes one URL; a dict fails with AttributeError: 'dict' object has no attribute 'url'. Per-scheme routing goes in mounts=. (×1) · record