Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scmmmh opened this issue Feb 27, 2025 · 0 comments
Open

Comments

@scmmmh
Copy link

scmmmh commented Feb 27, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants