astropy / astroquery

Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb8
http://astroquery.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
706 stars 399 forks source link

HTTP ERROR 500 when querying asynchronously #2714

Closed chenjunzhan closed 7 months ago

chenjunzhan commented 1 year ago

When I do a cone search using an asynchronous query, I get the following error (the synchronous query does not have this error, but only shows the first two thousand rows of query results)

image

chenjunzhan commented 1 year ago

I haven't found a solution yet, so I hope I can get some advice.

cosmoJFH commented 7 months ago

A new release of the Gaia archive has recently been carried out. We have checked that the previos issue can not be reproduced with the following example:

from astroquery.gaia import Gaia
import warnings

 warnings.filterwarnings('ignore')

query="SELECT * FROM gaiadr3.gaia_source WHERE 1 = CONTAINS(POINT('ICRS', ra, dec), CIRCLE('ICRS', 40, 40, 0.1))"

j1 = Gaia.launch_job_async(query=query, output_file="cone_1.vot.gz", output_format="votable_gzip", dump_to_file=True, verbose=False)

j2 = Gaia.launch_job_async(query=query, output_file="cone_2.vot", output_format="votable", dump_to_file=True, verbose=False)