Server unavailable or unreachable

Hi there!

This might be a dumb question, but I’m new to cloud computing and I have never run into this issue locally before. I’m trying to query mast to find JWST observations of a target based on RA and DEC. My kernel keeps crashing with the message, “Server unavailable or unreachable”

Here is the code that keeps breaking:

from astroquery.mast import Mast
from astroquery.mast import Observations

search_str = '34.37741275217305 -5.209022814691235'
obs_table = Observations.query_region(search_str)

Is it just timing out? Thanks

It looks like it is crashing because it runs out of memory. I think the returned tables has a large number of entries. You can either:

  • Add more controls to the query and do it in steps (e.g. add a radius constraint. The default is 0.2 degrees, you may want to make it smaller).
  • Switch to a larger compute instance. Instead of starting the ‘Small’ Instance, you go to ‘Medium’ or ‘Large’. Those have more memory and will be able to handle more sources in one query.