These are chat archives for hseeberger/akka-http-json
@hseeberger Hi, we are using the circe project with akka http and have discovered a problem with unmarshalling json entities that are "too large" (Actually they are quite small around 20 KB).
If we use
entity(as[Foo]) everything is fine until the JSON we send reaches a certain size (currently around 20/21 KB). After reaching this size we only get "400 Bad Request" back with an error from the circe parser like "The request content was malformed: Attempt to decode value on failed cursor: ..."
However if we switch the content type from
text/plain and use
entity(as[ByteString]) and decode manually afterwards via
decode[Foo](body.utf8String) everything works. Could this be related to streaming issues (incomplete json available in the unmarshaller)?