sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
55 stars 32 forks source link

Error when trying accessing data remotely: No url map found #766

Open IsaacZ10 opened 2 years ago

IsaacZ10 commented 2 years ago

Describe the bug

Not able to retrieve data when using Maps.

To Reproduce

Just trying to run a simple command, which used to work the day before. I've already updated the marvin to the latest version. code and report:

In [9] : maps=Maps('7443-12703')                                  
[WARNING]: Cannot retrieve URLMap. Remote functionality will not work: a bytes-like object is required, not 'str' (MarvinUserWarning)
---------------------------------------------------------------------------
BrainError                                Traceback (most recent call last)
<ipython-input-9-0048646871ce> in <module>
----> 1 maps=Maps('7443-12703')

~/anaconda3/lib/python3.8/site-packages/marvin/tools/maps.py in __init__(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, nsa_source, bintype, template, template_kin)
    111             self._load_maps_from_db(data=self.data)
    112         elif self.data_origin == 'api':
--> 113             self._load_maps_from_api()
    114         else:
    115             raise marvin.core.exceptions.MarvinError(

~/anaconda3/lib/python3.8/site-packages/marvin/tools/maps.py in _load_maps_from_api(self)
    370         """Loads a Maps object from remote."""
    371 
--> 372         url = marvin.config.urlmap['api']['getMaps']['url']
    373 
    374         url_full = url.format(name=self.plateifu,

~/anaconda3/lib/python3.8/site-packages/brain/core/core.py in __missing__(self, key)
     35 
     36         if len(self.keys()) == 0:
---> 37             raise BrainError('No URL Map found. Cannot make remote call')
     38         else:
     39             raise BrainError('Key {0} not found in urlmap.'.format(key))

BrainError: No URL Map found. Cannot make remote call

Desktop (please complete the following information):

Additional context Also not able to access the Marvin-Web, which shows 502 bad gateway. But downloading data with rsync (following https://www.sdss.org/dr17/manga/manga-data/data-access/) is fine.