I'm encountering a 502 Bad Gateway error when using httpx to make requests to my local server, but the same requests succeed when using the requests library. Below are the details of the commands I ran and the outputs I received:
I noticed that the connection is to port 233. I'm using the Clash service mode to globally proxy my network traffic, which seems to be causing the 502 error. However, why do other httpx requests, as well as requests library calls, succeed?
I'm encountering a 502 Bad Gateway error when using httpx to make requests to my local server, but the same requests succeed when using the requests library. Below are the details of the commands I ran and the outputs I received:
Logs: I enabled logging to further investigate the issue:
I noticed that the connection is to port 233. I'm using the Clash service mode to globally proxy my network traffic, which seems to be causing the 502 error. However, why do other httpx requests, as well as requests library calls, succeed?
Thanks~