These are chat archives for hseeberger/akka-http-json

28th
Mar 2018
Luke Wyman
@lukewyman
Mar 28 2018 18:58
Hi all - I'm using akka-http-circe 1.20.0 with circe 0.9.3 and getting the following run-time error when GET-ting an entity:
ERROR: 2018-03-28 12:16:39,121: akka.actor.ActorSystemImpl => Error during processing of request: 'Unsupported Content-Type, supported: application/json'. Completing with 500 Internal Server Error response. To change default exception handling behavior, provide a custom ExceptionHandler. 
akka.http.scaladsl.unmarshalling.Unmarshaller$UnsupportedContentTypeException: Unsupported Content-Type, supported: application/json
    at akka.http.scaladsl.unmarshalling.Unmarshaller$UnsupportedContentTypeException$.apply(Unmarshaller.scala:158) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshaller$EnhancedFromEntityUnmarshaller$.$anonfun$forContentTypes$3(Unmarshaller.scala:114) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshaller$$anon$1.apply(Unmarshaller.scala:58) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshaller.$anonfun$transform$3(Unmarshaller.scala:23) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshaller$$anon$1.apply(Unmarshaller.scala:58) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshaller.$anonfun$transform$3(Unmarshaller.scala:23) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshaller$$anon$1.apply(Unmarshaller.scala:58) ~[akka-http_2.12-10.0.10.jar:na]
    at akka.http.scaladsl.unmarshalling.Unmarshal.to(Unmarshal.scala:25) ~[akka-http_2.12-10.0.10.jar:na]