Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IsaacZ10 opened this issue Jan 25, 2022 · 0 comments
Open

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

IsaacZ10 opened this issue Jan 25, 2022 · 0 comments

Comments

@IsaacZ10
Copy link

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):

  • Ubuntu 16.04 LTS
  • Version of Marvin [e.g. 2.0.2]

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant