# NoMoreElementsNeeded occurred in S3Stream.download

**URL:** <https://discuss.akka.io/t/nomoreelementsneeded-occurred-in-s3stream-download/9500>\
**Category:** Akka Streams & Alpakka\
**Tags:** akka, akka-http, scala, alpakka, streams\
**Created:** [February 8, 2022, 6:09am UTC](https://discuss.akka.io/t/nomoreelementsneeded-occurred-in-s3stream-download/9500 "2022-02-08T06:09:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amo12937](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/amo12937/32/2785_2.png) [@amo12937](https://discuss.akka.io/u/amo12937)\
**Post date:** [February 8, 2022, 6:09am UTC](https://discuss.akka.io/t/nomoreelementsneeded-occurred-in-s3stream-download/9500/1 "2022-02-08T06:09:28Z")

</div>

I’m researching some error occurred in our system using alpakka 3.0.3.

Our system composes of S3 source and DynamoDB sink. It was failed with SubscriptionWithCancelException.NoMoreElementsNeeded exception having null stack trace. We could not find out where it happened. We are using the following libraries:

- akka v2.6.14
- akka-http v10.2.4
- alpakka v3.0.3
  - akka-stream-alpakka-csv
  - akka-stream-alpakka-s3
  - akka-stream-alpakka-dynamodb

We suspected `cancel` has been called somewhere. Our system fetches a S3 object by [S3Stream.download](https://github.com/akka/alpakka/blob/v3.0.3/s3/src/main/scala/akka/stream/alpakka/s3/impl/S3Stream.scala#L110-L132) method. The method eventually calls Http().singleRequest in S3Stream.singleRequest. It looks somehow, the method `Http().singleRequest` calls `cancel` without any cause.

I read [this topic](https://discuss.akka.io/t/about-nomoreelementsneeded-exception/8599) and change settings to the following:

```auto
akka.http {
  client {
    stream-cancellation-delay = 10000 millis
  }
}

```

but it did not work for us.

Does anyone know how it comes and how I can research it? or has the same issue?

Thank you.
