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

VSOClient should fail to initilize if it can't read the WSDL #2981

Closed
Cadair opened this issue Mar 12, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@Cadair
Copy link
Member

commented Mar 12, 2019

Currently what happens is this:

/home/stuart/Git/sunpy/sunpy/net/vso/vso.py:93: UserWarning: Connection failed with error <urlopen error [Errno -3] Temporary failure in name resolution>. 
 Retrying with different url and port.
  "Connection failed with error {}. \n Retrying with different url and port.".format(e))
Traceback (most recent call last):
  File "test_download.py", line 14, in <module>
    a.Wavelength(171*u.angstrom) | a.Wavelength(94*u.angstrom))
  File "/home/stuart/Git/sunpy/sunpy/net/fido_factory.py", line 297, in search
    return UnifiedResponse(query_walker.create(query, self))
  File "/home/stuart/Git/sunpy/sunpy/net/attr.py", line 411, in create
    return self.createmm(self, *args, **kwargs)
  File "/home/stuart/Git/sunpy/sunpy/util/multimethod.py", line 120, in __call__
    return fun(*args, **kwargs)
  File "/home/stuart/Git/sunpy/sunpy/net/fido_factory.py", line 238, in _create_or
    qblocks.extend(walker.create(attr.and_(attrblock), factory))
  File "/home/stuart/Git/sunpy/sunpy/net/attr.py", line 411, in create
    return self.createmm(self, *args, **kwargs)
  File "/home/stuart/Git/sunpy/sunpy/util/multimethod.py", line 120, in __call__
    return fun(*args, **kwargs)
  File "/home/stuart/Git/sunpy/sunpy/net/fido_factory.py", line 231, in _create_and
    return [factory._make_query_to_client(*query.attrs)]
  File "/home/stuart/Git/sunpy/sunpy/net/fido_factory.py", line 431, in _make_query_to_client
    return tmpclient.search(*query), tmpclient
  File "/home/stuart/Git/sunpy/sunpy/net/vso/vso.py", line 303, in search
    QueryRequest = self.api.get_type('VSO:QueryRequest')
AttributeError: 'NoneType' object has no attribute 'get_type'


@Cadair

This comment has been minimized.

Copy link
Member Author

commented Mar 12, 2019

You can reproduce this by creating VSOClient() object without an internet connection.

@nabobalis

This comment has been minimized.

Copy link
Contributor

commented Mar 12, 2019

I wonder how many clients also error like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.