Akka文件流抛出akka.http.scaladsl.model.EntityStreamException错误:实体流被截断

时间:2018-09-28 10:19:35

标签: akka-stream akka-http alpakka

我们正在从S3流式传输文件并对其进行处理,处理完成后,我们将文件上传为S3的错误/存档文件,而从S3进行流式传输文件时,它流传输数据,并且在两者之间停止处理并显示错误为“ akka.http.scaladsl” .model.EntityStreamException:实体流截断”,不确定这取决于来自S3的文件大小流还是损坏的文件?

val source = s3Client.download(baseConfig.bucketName.get, 
content.key)._1.via(Gzip.decoderFlow).
via(Framing.delimiter(ByteString("\n"), 256, 
byeFormatterFlag).map(_.utf8String))
val flow = flowDefintion(list)
val resp = source.via(flow).runWith(Sink.seq)

akka {
loglevel = "INFO"
stdout-loglevel = "INFO"
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
http {
routing {
  decode-max-size = 25m
}
parsing {
  max-to-strict-bytes = 20m
  max-content-length = 20m
  max-chunk-size=10m
}

} }

0 个答案:

没有答案