Skip to content

File upload org.http4s.client.UnexpectedStatus: unexpected HTTP status: 400 Bad Request for request POST #593

@Shestaevd

Description

@Shestaevd

Hi, pretty simple approach to send a document,

private def startScenario[F[_] : TelegramClient](config: Config)(file: (String, Array[Byte])): Scenario[F, Unit] =
    for {
      msg <- Scenario.expect(any)
      _ <- Scenario.eval(msg.chat.send(
        content = DocumentContent(InputFile.fromBytes(file._1, file._2))
      ))
    } yield ()

but version 0.6.0 returns an error
javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify

P.S. Sorry if i've got wrong understanding of the process, but, looks like a bug for me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions