You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/05/11 09:47:19 UTC
[GitHub] [incubator-kyuubi] ulysses-you opened a new issue, #2632: [SUB-TASK][KPIP-4] Enhance the response error msg
ulysses-you opened a new issue, #2632:
URL: https://github.com/apache/incubator-kyuubi/issues/2632
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before asking
- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.
### Describe the feature
Help user get the better error msg. For example:
- GET `api/v1/batches/${batchId}`, if the batch id is not found
before:
```
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/api/v1/batches/6656e0de-2ad8-4ec5-a003-537286ce22c4</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-2001e48c</td></tr>
</table>
<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.41.v20210516</a><hr/>
</body>
</html>
```
after:
```
Invalid batchId: xxxx
```
- POST `api/v1/batches`, if the input parameter is illegal (no specified resource)
before:
```
{
"servlet": "org.glassfish.jersey.servlet.ServletContainer-2001e48c",
"message": "Request failed.",
"url": "/api/v1/batches",
"status": "500"
}
```
after:
```
requirement failed: resource is a required parameter
```
### Motivation
_No response_
### Describe the solution
_No response_
### Additional context
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] turboFei closed issue #2632: [SUB-TASK][KPIP-4] Enhance the response error msg
Posted by GitBox <gi...@apache.org>.
turboFei closed issue #2632: [SUB-TASK][KPIP-4] Enhance the response error msg
URL: https://github.com/apache/incubator-kyuubi/issues/2632
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org