I am trying to set a different akka.http.parsing.max-chunk-size
My application.conf is in src/resources/ and looks like this:
akka.http {
parsing {
max-chunk-size=20m
}
}
I am using this code in my main to set up my system:
val conf = ConfigFactory.load()
implicit val system = ActorSystem()
implicit val materializer = ActorMaterializer()
implicit val executionContext = system.dispatcher
However I still get this error when trying to make a big get request:
akka.http.scaladsl.model.EntityStreamException: HTTP chunk size exceeds the configured limit of 1048576 bytes
EDIT: I have tried relocating the file based on the answer I got, however i still get the same error. My program structure looks like this:
├── main
│ ├── resources
│ │ └── application.conf
│ └── scala
│ ├── program
│ │ ├── BackTester.scala
│ │ ├── Main.scala
│ │ └── StrategyExecutor.scala
│ ├── strategies
│ │ ├── BollingerBandStrategy.scala
│ │ ├── CrossingSMAStrategy.scala
│ │ ├── RSIStrategy.scala
│ │ ├── StochasticStrategy.scala
│ │ └── TradingStrategies.scala
│ └── util
│ ├── Interval.scala
│ ├── JsonParser.scala
│ ├── Time.scala
│ ├── barseries
│ │ └── barSeriesBuilder.scala
│ └── requests
│ └── Fetcher.scala
└── test
└── scala