You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some tests, I made a hotfix to prepend the request URL (AsyncTAPJob.url) to the result URL if the job URL is not absolute, and it worked. I am not sure wether the spec requires an absolute URL or allows a relative one. I can make a pull request if this solution is correct.
I also tested with Topcat, works out of the box.
For reference, I am using the method for authentication described in examples/auth/gaia_auth_example.py.
The text was updated successfully, but these errors were encountered:
Hi there @streeto , thank you so much for filing an issue.
I just gave a quick look through the UWS spec, and I don't see a lot of info one way or the other on if it should be an absolute URL or could also be relative. It seems that if TOPCAT works, that it might be part of the spec, although again, I'm not sure.
Since you've already done the work of making a fix (and tested it), I would suggest that you make a PR, so we can at least see what is going on in the code - it seems like a pretty small targeted fix, but I just want to confirm that.
I'll try to ask around to see if there's any strong opinions on the UWS spec, I'll email Mark Taylor and the GWS list to see if anyone chimes in.
streeto
added a commit
to streeto/pyvo
that referenced
this issue
Oct 31, 2019
…ync job with a relative result URL.
Some TAP services return a JobSummary containing relative URLs for results, leading to an exception like the following:
`MissingSchema: Invalid URL './21530/./results/result': No schema supplied. Perhaps you meant http://./21530/./results/result?`
If the result URL is relative, we have to prepend the async TAP request URL to it before fetching the results.
Fixesastropy#191.
I am using CEFCA TAP services (currently only with authenticated access), and tried to make some async queries. I get this error:
MissingSchema: Invalid URL './21530/./results/result': No schema supplied. Perhaps you meant http://./21530/./results/result?
The job summary is like the following:
After some tests, I made a hotfix to prepend the request URL (
AsyncTAPJob.url
) to the result URL if the job URL is not absolute, and it worked. I am not sure wether the spec requires an absolute URL or allows a relative one. I can make a pull request if this solution is correct.I also tested with Topcat, works out of the box.
For reference, I am using the method for authentication described in
examples/auth/gaia_auth_example.py
.The text was updated successfully, but these errors were encountered: