You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "Daewon Jeong (JIRA)" <ji...@apache.org> on 2016/02/26 15:51:18 UTC

[jira] [Updated] (S2GRAPH-47) Invalid HTTP Response code in experimental netty server.

     [ https://issues.apache.org/jira/browse/S2GRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daewon Jeong updated S2GRAPH-47:
--------------------------------
    Summary: Invalid HTTP Response code in experimental netty server.  (was: Invalid HTTP Response code in experiment netty server.)

> Invalid HTTP Response code in experimental netty server.
> --------------------------------------------------------
>
>                 Key: S2GRAPH-47
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-47
>             Project: S2Graph
>          Issue Type: Bug
>            Reporter: Daewon Jeong
>            Priority: Minor
>              Labels: bug
>
> When Exception occured, server must response with status code 500.
> But now, Server response with BadQueryException(status code 400)
> [https://github.com/apache/incubator-s2graph/blob/2b63878cc3850b8308fb123c824870066efbef09/s2rest_netty/src/main/scala/Server.scala#L144]
> ```
>   override def exceptionCaught(ctx: ChannelHandlerContext, cause: Throwable) {
>     cause.printStackTrace()
>     logger.error(s"exception on query.", cause)
>     simpleResponse(ctx, BadRequest, byteBufOpt = None, channelFutureListenerOpt = CloseOpt)
>   }
> ```



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)