Bug with httpx
Open
@NghiaTranUIT is already working on this.
Since Jul 6, 2025.
Assessment
This issue has not been assessed yet.
Description
✅ Done
bug
Description
In some cases, I get the error:
self = <aiohttp.client.ClientSession object at 0x10e8255e0>, k = ()
kw = {'connector': <aiohttp.connector.TCPConnector object at 0x10f447590>, 'trust_env': False}
@functools.wraps(_http_connection_init)
def _new_http_connection_init(self, *k, **kw):
# ask aiohttp to use proxy from the evn
> _http_connection_init(self, trust_env=True, *k, **kw)
E TypeError: aiohttp.client.ClientSession.__init__() got multiple values for keyword argument 'trust_env'
/Applications/Proxyman.app/Contents/Frameworks/ProxymanCore.framework/Versions/A/Resources/overrides/python/aiohttp.py:14: TypeError
Steps to Reproduce
- Use the "Manual Setup" feature of Proxyman to setup a Terminal, and run a Python script, presumably where
trust_envis already being passed deep inside some library I'm depending on
Current Behavior
Exception as above.
Expected Behavior
As a fix, maybe something like:
kw.setdefault("trust_env", True)
instead of passing trust_env=True in the monkey patch
Environment
- App version: Proxyman 5.22.0
- Dominant language
- No language data
- Stars
- 7k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ProxymanApp/Proxyman
-
✅ Done enhancement
ProxymanApp/Proxyman#2772 · 1 comment · 1 assignee ·
-
✅ Done enhancement
ProxymanApp/Proxyman#2771 · 1 comment · 1 assignee ·
-
bug
ProxymanApp/Proxyman#2770 · 1 assignee ·
-
✅ Done bug
ProxymanApp/Proxyman#2769 · 2 comments · 1 assignee ·
-
✅ Done enhancement
ProxymanApp/Proxyman#2768 · 1 comment · 1 assignee ·