Akka-Http - Multipart file upload - SubscriptionTimeoutException

285 views
Skip to first unread message

Andres Blanco

unread,
Aug 29, 2017, 8:25:33 PM8/29/17
to Akka User List
Hi everyone,

We developed some code that executes a file upload, it was working fine for some test but it suddenly started failing with bigger file sizes ( > 120kb). It throws this exception:

akka.stream.impl.SubscriptionTimeoutException: Substream Source has not been materialized in 5000 milliseconds
at akka.stream.impl.fusing.SubSource.timeout(StreamOfStreams.scala:706)
at akka.stream.stage.GraphStageLogic$SubSourceOutlet.timeout(GraphStage.scala:1138)
at akka.stream.impl.fusing.PrefixAndTail$PrefixAndTailLogic.onTimer(StreamOfStreams.scala:134)
at akka.stream.stage.TimerGraphStageLogic.akka$stream$stage$TimerGraphStageLogic$$onInternalTimer(GraphStage.scala:1228)
at akka.stream.stage.TimerGraphStageLogic$$anonfun$akka$stream$stage$TimerGraphStageLogic$$getTimerAsyncCallback$1.apply(GraphStage.scala:1217)
at akka.stream.stage.TimerGraphStageLogic$$anonfun$akka$stream$stage$TimerGraphStageLogic$$getTimerAsyncCallback$1.apply(GraphStage.scala:1217)
at akka.stream.impl.fusing.GraphInterpreter.runAsyncInput(GraphInterpreter.scala:443)
at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:453)

We've already configured akka.http.server.parsing.max-content-length to 100m with no change, the service is hosted behind an nginx service that has client_max_body_size = 100m. 

Any ideas?

Konrad “ktoso” Malawski

unread,
Aug 29, 2017, 9:45:12 PM8/29/17
to akka...@googlegroups.com, Andres Blanco
Please ask in one spot at the same time - it’s difficult to  track and match all the questions-that-already-were-answered..
Please also include code when asking such questions - I have to guess that you used the fileUpload directive, but that’s not the only way to handle uploads,
so we’re left guessing that you’re probably using that, and probably seeing https://github.com/akka/akka-http/issues/1216 

More details in the ticket,

Hope this helps

Konrad `kto.so` Malawski
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages