exasol / pyexasol

Exasol Python driver with low overhead, fast HTTP transport and compression
MIT License
72 stars 39 forks source link

respect `no_proxy` environment variable #96

Closed MM-Lehmann closed 1 year ago

MM-Lehmann commented 1 year ago

pyexasol does pickup my http_proxy environment but not the whitelist in no_proxy. I can't see a way in the ExaConnection code to explicitly ignore proxy settings once set in the underlying system. Unfortunately, I need the proxy for other connections with other libraries in my project. I am using pyexasol 0.24.0 as a library in Apache Airflow 2.2.5

littleK0i commented 1 year ago

@MM-Lehmann , it looks like underlying WebSocket client picks up https_proxy and http_proxy from environment. Pyexasol does not explicitly do so.

However, Websocket client does also pick no_proxy from environment, according to this code: https://github.com/websocket-client/websocket-client/blob/a8a409999280e8b90d856113cd109a46b1d465b7/websocket/_url.py#L104-L121

Please double-check version of installed Websocket client. This feature was added about a year ago: https://github.com/websocket-client/websocket-client/issues/700

redcatbear commented 1 year ago

Closed due to missing user response.