Error `All fibers interrupted without errors` with HttpApiSchema.MultipartStream

Hello everyone,
I have the error All fibers interrupted without errors when trying to handle multiple files with this Api definition
HttpApiEndpoint.post("debug", `/debug`)
.setPayload(
  HttpApiSchema.MultipartStream(
    Schema.Struct({
      pictures: Schema.optional(FilesSchema),
    }),
  ),
)
.addSuccess(Schema.Struct({ ok: Schema.Literal(true) }))


and this basic implementation
.handle(
  "debug",
  Effect.fn(function* ({ path, payload }) {
    yield* Stream.runForEach(payload, (part) => Effect.logInfo(part));

    return { ok: true } as const;
  })
)


When I upload 2 pictures, I never got a response from the api and got the fiber interrupted error

It works fine with 1 picture.

Any ideas ? Or at least a workaround until it got fixed ?
Was this page helpful?