Issue with astroquery? basic examples don't seem to work

Hi,

I’m trying to use astroquery to search for archival data. I’ve used MAST frequently, but I’m new to astroquery. I’m finding that some of the examples from the astroquery docs don’t run as expected. For example, when I use the example under “Retrieving Data Products” taken from the docs

the code reads as follows

obs_table = Observations.query_criteria(object_name=“M8”, obs_collection=[“K2”, “IUE”])
data_products_by_obs = Observations.get_product_list(obs_table[0:2], batch_size=500)
print(data_products_by_obs)

That looks straightforward, but I get the error

astroquery.exceptions.InvalidQueryError: Filter ‘object_name’ does not exist. Did you mean ‘target_name’?

Okay, that’s kind of weird that the example doesn’t work as-is, but also an easy fix. But if we change ‘object_name’ to ‘target_name’ the code gives this error

TypeError: ObservationsClass.get_product_list_async() got an unexpected keyword argument ‘batch_size’

These are just a few examples, and while there might be work-arounds for some of these I keep running into issues where the examples in the docs don’t run as expected. For a newbie, this is actually really hard.

These issues kind of look like I’m running an old version of astroquery or astropy, but I’ve checked and both are fully up to date. I even did a fresh reinstall.

I’d be grateful for any help!