bynk.http.body_kind_conflict
Error A handler carries both @raw and @form, which each fix the wire format of its one body.
@raw, @form and @multipart each say how a route's one body is read off the wire: untouched octets, a urlencoded form or a multipart upload. A body has one wire format, so a handler carries at most one of them, and the second one written is reported. Keep the annotation that matches what the client sends; a JSON body needs none of them.
Example
@form@raw(contentType: "image/png") // ✗ the body is already a form@limit(maxBody: 1_000_000)on POST("/signup") (body: SignupForm) -> Effect[HttpResult[String]] by v: Visitor { … }
@form // ✓ one wire formaton POST("/signup") (body: SignupForm) -> Effect[HttpResult[String]] by v: Visitor { … }In the Book
See also
- Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.body_kind_conflictshows the same from the installed toolchain, without a network.