mpartan
mpartan

Reputation: 1316

Lagom microservice and Akka HTTP configuration location

I am using Lagom 1.4.6 and getting

akka.http.scaladsl.model.EntityStreamException: HTTP chunk size exceeds the configured limit of 1048576 bytes

with ServiceCall for a impl defined in a build.sbt.

Neither

akka.http.server.parsing.max-chunk-size = 10m
akka.http.client.parsing.max-chunk-size = 10m

nor

akka.http.host-connection-pool.client.parsing.max-chuck-size = 10m

in application.conf root or application.conf's

play { ... } 

and

play { server { ... } } 

block seem to do anything, I am still getting the same error message in Dev with the default 1M limit.

Where should Akka HTTP configuration in a Lagom microservice go?

Upvotes: 0

Views: 311

Answers (1)

erip
erip

Reputation: 16935

You'll need to prefix Akka-HTTP settings with play.server. The relevant section in the docs can be found here.

It's important to note that in dev mode, a custom HTTP server is used so it may ignore these settings.

Upvotes: 1

Related Questions