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
SQL importer web UI should return the DatabaseServiceException message instead of generic error #4007
Comments
Agreed, we should probably propagate the real error message so that it's more useful. |
Not really, just more information about the error. |
Hi, first time working on this project. Can I give it a try? @braiam |
@aileenpalafox this is a open source project, so break a leg! |
@aileenpalafox Thanks! Let us know in this issue if you have questions or you can ask on our dev mailing list |
Hello, again @thadguidry I faced some problems when trying to solve this one and ran out of time so I'm gonna drop it for now. In case anyone else want to work on it they can give it a try. |
@aileenpalafox No problem, perhaps you can work on another issue we have marked with a label called "good first issue"? If not and you are too busy, we certainly understand and thanks anyways for offering to help! |
Thank you for the offer @thadguidry, right now I've other stuff going on so I'll have to pass. Good luck with the project! |
Posted by @bhargavii on our Gitter channel
|
@wetneb Are we sure? I'm using version 3.5-beta1 [1b9907e] and still can reproduce the issue. Is using master recommended? With a postgresql database:
|
@braiam thanks for the confirmation! I don't know if @bhargavii is still interested in working on this, perhaps this additional information will help them understand how to reproduce the issue. |
I use openrefine to import projects directly from a database to process it and exporting as a file to share with others. I created a custom user for this to reduce the possibility of a bug or attack vector that would modify/damage the database. That means that I have to explicitly grant permissions on tables/schemas. Sometimes I forget this step, and the logs accurately reflect this issue:
But the message in the web UI is just a generic "error:Bad Request" without further details.
Proposed solution
If there's an error, the top error message (without the at details) should be returned along the "error:Bad Request" via the UI, so that users are informed of the issue and work out the solution. It would provide immediate actionable feedback of what is wrong with the query, so they can fix it.
Alternatives considered
While the error logs do point out the problem, in case of a shared instance where there isn't an easy way to access the box where openrefine resides, it would take time to figure out if the SQL query is correct, login the remote box, pull the logs, find the specific message, and fix the issue with the database.
The text was updated successfully, but these errors were encountered: