DALQueryError when trying to query ObsCore table
YayeAwa opened this issue · comments
Hi,
I try to execute these lines
>>> from astroquery.alma import Alma
>>> query = f"select obs_id,s_ra, s_dec, frequency_support from ivoa.Obscore where member_ous_uid='uid://A001/X14c2/X1a0' and scan_intent='TARGET' and target_name='J1116+2200'"
>>> a_table = Alma.query_tap(query)
But I got this error
pyvo.dal.exceptions.DALQueryError: Failed to obtain JDBC Connection; nested exception is org.apache.tomcat.jdbc.pool.PoolExhaustedException: [http-nio-8080-exec-11] Timeout: Pool empty. Unable to fetch a connection in 20 seconds, none available[size:4; busy:4; idle:0; lastwait:20000]. [http-nio-8080-exec-11] Timeout: Pool empty. Unable to fetch a connection in 20 seconds, none available[size:4; busy:4; idle:0; lastwait:20000].
My astroquery's version is '0.4.7.dev9166'
Thank you for your help.
I can reproduce this. @andamian is there something wrong in the database?
DALQueryError: Failed to obtain JDBC Connection; nested exception is org.apache.tomcat.jdbc.pool.PoolExhaustedException: [http-nio-8080-exec-10] Timeout: Pool empty. Unable to fetch a connection in 20 seconds, none available[size:4; busy:4; idle:0; lastwait:20000]. [http-nio-8080-exec-10] Timeout: Pool empty. Unable to fetch a connection in 20 seconds, none available[size:4; busy:4; idle:0; lastwait:20000].
This is server related problem that ALMA is currently addressing. I'll update the ticket when I learn that it's back up. Thanks for reporting.
Sorry - forgot to mention it here that it's back on.