astropy / pyvo

An Astropy affiliated package providing access to remote data and services of the Virtual Observatory (VO) using Python.
https://pyvo.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
74 stars 50 forks source link

dal.vosi.EndpointMixin swallows port numbers when looking for endpoints #563

Open msdemlei opened 2 weeks ago

msdemlei commented 2 weeks ago

Consider:

import pyvo

rscs = pyvo.registry.search(ivoid="ivo://astro.ucl.ac.uk/tap")
svc = rscs[0].get_service("tap")
svc.upload_methods

This yields a

pyvo.dal.exceptions.DALServiceError: No working capabilities endpoint provided

Looking inside the relevant code, it turns out that the service in question has a port number of 8000 in its access URL; in the endpoints tried, that number is missing.