Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-47

Invalid HTTP Response code in experimental netty server.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      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) }

      ```

      Attachments

        Activity

          People

            daewon Daewon Jeong
            daewon Daewon Jeong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: