Open Yancey1989 opened 4 years ago
So we don't need to define a list of error types? Seems if we have simple and clear error messages return to the users, the error response document is not needed any more.
@typhoonzero I agree that error types and codes don't seem to be the key to fixing the error messaging problem.
This issue tries to summarize SQLFlow error examples into 3 types according to #2165
Error Messages from Go Codebase
Some cases:
What we want:
Make these error messages more meaningful and give suggestions to users as the following example:
Error Messages from Generated Code
As case https://github.com/sql-machine-learning/sqlflow/issues/2165#issuecomment-620582099
SQLFlow returns the generated code and Python error stack to users, it's unmeaningful.
What we want:
1.
and2.
does not affect, should record the backtrace on sqlflowserver and inform email/issue to SQLFlow develops.Error Messages From Dependent Services
Some generated code submits a distributed job to a cluster .e.g. PAI/Kubernetes.
We should trace the job status and resolve a meaningful error message to users.