astroquery icon indicating copy to clipboard operation
astroquery copied to clipboard

Tap connections do not work behind a proxy (fails to access astroquery.gaia)

Open scmmmh opened this issue 10 months ago • 0 comments

We've run into a small problem using astroquery.gaia behind a proxy. In our setup students are running their code inside a hosted environment and as part of their work have to download some data via astroquery.gaia. For security reasons, outgoing network connections from the hosted environment must run via a central proxy. That works fine for most of the astroquery requests that students do, but the astroquery.gaia requests fail. The reason is that the ConnectionHandler in the tapconn.py uses httplib, which does not by default honour the HTTP_PROXY/HTTPS_PROXY environment variables.

While we can work around this for some of the work, it would be great if the functionality could be extended so that astroquery.gaia can be used behind a proxy as well.

scmmmh avatar Feb 27 '25 12:02 scmmmh