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

Improved error handling #125

Open
keflavich opened this issue May 16, 2019 · 6 comments
Open

Improved error handling #125

keflavich opened this issue May 16, 2019 · 6 comments
Labels

Comments

@keflavich
Copy link
Contributor

Some error messages are very opaque. It's not clear whether this is a server-side or client-side issue, but if it's the latter, we should fix them. For example, this error:

DALQueryError: Cannot parse query 'SELECT * FROM user_jsalgado.m45' for job '1558013349747O': 1 unresolved identifiers: m45 [l.1 c.15 - l.1 c.32] !

is actually an authentication error: the requested table was not accessible because it's private and no proper token was provided.

It would be helpful to add examples to this issue to illustrate where better error handling is needed.

@msdemlei
Copy link
Contributor

msdemlei commented May 16, 2019 via email

@keflavich
Copy link
Contributor Author

Agreed on all counts: pyVO should report that this is a server side error, and the server should provide a more informative error message.

There was a subtext to this message that I didn't express - someone else today (don't know github username) expressed that there were some inadequate error messages in pyvo, but I don't know what they are. I was hoping this issue would prompt some other users to post their concerns.

@bsipocz
Copy link
Member

bsipocz commented Dec 16, 2023

Unfortunately we still see some cryptically unuseful error message, e.g. this one was due to the missing upload file yet the message complains about the query:

NASA-NAVO/navo-workshop#146

@bsipocz bsipocz added the bug label Dec 16, 2023
@msdemlei
Copy link
Contributor

msdemlei commented Dec 18, 2023 via email

@bsipocz
Copy link
Member

bsipocz commented Dec 18, 2023

(2) find out that there are uploaded table(s) referenced
(3) find out which columns from these are referenced in the query
(4) make sure these columns actually are in the tables uploaded.

I would only go as far as checking whether the uploaded table exists at all, parsing or interpreting it and the ADQL would be beyond scope I believe, we should leave that to the service and hope they return a reasonable error message. I'm surprised that no one actually complained about that, I should have done a deep dive in the traceback.

@msdemlei
Copy link
Contributor

msdemlei commented Dec 19, 2023 via email

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

No branches or pull requests

3 participants