Open havok2063 opened 3 years ago
Try to upgrade to the latest version with pip install -U --pre astroquery
. We continuously deploy, and therefore there are bugfixes out there since the last 0.4.1 tagged release.
Tested with 0.4.2.dev6449
and I get the original error that I did with 0.4.0
.
now I see another error for the example above:
In [4]: out = Mast.service_request(service, params, fetch_name="Mast.JwstEdb", pagesize=1000)
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-4-388cd3d8e137> in <module>
----> 1 out = Mast.service_request(service, params, fetch_name="Mast.JwstEdb", pagesize=1000)
~/munka/devel/astroquery/astroquery/utils/class_or_instance.py in f(*args, **kwds)
23 def f(*args, **kwds):
24 if obj is not None:
---> 25 return self.fn(obj, *args, **kwds)
26 else:
27 return self.fn(cls, *args, **kwds)
~/munka/devel/astroquery/astroquery/utils/process_asyncs.py in newmethod(self, *args, **kwargs)
27 if kwargs.get('get_query_payload') or kwargs.get('field_help'):
28 return response
---> 29 result = self._parse_result(response, verbose=verbose)
30 self.table = result
31 return result
~/munka/devel/astroquery/astroquery/mast/observations.py in _parse_result(self, responses, verbose)
872 """
873
--> 874 return self._portal_api_connection._parse_result(responses, verbose)
875
876 @class_or_instance
~/munka/devel/astroquery/astroquery/mast/discovery_portal.py in _parse_result(self, responses, verbose)
290 raise RemoteServiceError(result.get('msg', "There was an error with your request."))
291
--> 292 result_table = _json_to_table(result, col_config)
293 result_list.append(result_table)
294
~/munka/devel/astroquery/astroquery/mast/discovery_portal.py in _json_to_table(json_obj, col_config)
70
71 if not all(x in json_obj.keys() for x in ['fields', 'data']):
---> 72 raise KeyError("Missing required key(s) 'data' and/or 'fields.'")
73
74 for col, atype in [(x['name'], x['type']) for x in json_obj['fields']]:
KeyError: "Missing required key(s) 'data' and/or 'fields.'"
cc @jaymedina
The service request to retrieve mnemonic information from the JWST engineering database no longer works. Using
astroquery 0.4
I get the following error:After updating to
0.4.1
I get a different error: