Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multiPart upload codec #1781

Merged
merged 2 commits into from
Jan 24, 2022
Merged

Conversation

uryyyyyyy
Copy link

when I use multipart upload, it shows error like this.

[info] - Endpoint[echo raw parts](securityin: -, in: POST /api /echo /multipart {body as multipart/form-data}, errout: -, out: {body as text/plain (UTF-8)}) *** FAILED *** (2 milliseconds)
[info]   java.lang.ClassCastException: class sttp.model.Part cannot be cast to class scala.collection.immutable.List (sttp.model.Part is in unnamed module of loader sbt.internal.LayeredClassLoader @9cb3542; scala.collection.immutable.List is in unnamed module of loader sbt.internal.ScalaLibraryClassLoader @13aa12e4)
[info]   at sttp.tapir.Mapping$$anon$4.encode(Mapping.scala:60)
[info]   at sttp.tapir.Codec$$anon$1.encode(Codec.scala:75)
[info]   at sttp.tapir.Codec$$anon$2.encode(Codec.scala:93)
[info]   at sttp.tapir.Codec$$anon$5.$anonfun$encode$2(Codec.scala:212)
[info]   at scala.collection.immutable.List.flatMap(List.scala:293)
[info]   at sttp.tapir.Codec$$anon$5.$anonfun$encode$1(Codec.scala:211)
[info]   at scala.collection.immutable.List.flatMap(List.scala:293)
[info]   at sttp.tapir.Codec$$anon$5.encode(Codec.scala:210)
[info]   at sttp.tapir.Codec$$anon$5.encode(Codec.scala:205)
[info]   at sttp.tapir.Codec$$anon$1.encode(Codec.scala:75)
[info]   ...

@adamw adamw merged commit 507e3aa into softwaremill:master Jan 24, 2022
@uryyyyyyy uryyyyyyy deleted the fix_multipart branch January 25, 2022 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants