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

GraphQL empty variable fields on post request cause spray.json.DeserializationException.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Trivial
    • Resolution: Done
    • None
    • None
    • s2graphql
    • None

    Description

      When send post request with empty variable on GraphiQL cause following erros.

      s2graphql spray.json.DeserializationException: JSON object expected
      s2graphql 	at spray.json.package$.deserializationError(package.scala:23)
      s2graphql 	at spray.json.JsValue.asJsObject(JsValue.scala:36)
      s2graphql 	at spray.json.JsValue.asJsObject(JsValue.scala:41)
      s2graphql 	at org.apache.s2graph.graphql.Server$$anonfun$4$$anonfun$apply$4$$anonfun$apply$9$$anonfun$apply$12.apply(HttpServer.scala:92)
      s2graphql 	at org.apache.s2graph.graphql.Server$$anonfun$4$$anonfun$apply$4$$anonfun$apply$9$$anonfun$apply$12.apply(HttpServer.scala:92)
      s2graphql 	at akka.http.scaladsl.server.directives.RouteDirectives$$anonfun$complete$1.apply(RouteDirectives.scala:47)
      s2graphql 	at akka.http.scaladsl.server.directives.RouteDirectives$$anonfun$complete$1.apply(RouteDirectives.scala:47)
      

      Attachments

        Issue Links

          Activity

            People

              steamshon Do Yung Yoon
              steamshon Do Yung Yoon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: