bynk.http.form_duplicate
Error A handler carries more than one @form annotation.
@form says the route's one body is an HTML form post, and @multipart says it is a browser upload. A handler has a single body, so it carries one of the two, once: a second would restate the encoding or contradict it, and the second is refused. Delete the repeat. Pairing @form with @raw is bynk.http.body_kind_conflict, and a repeated @raw is bynk.http.raw_duplicate.
Example
type Signup = { email: String }
@form@form // ✗ a second `@form`on POST("/signup") (body: Signup) -> Effect[HttpResult[()]] by v: Visitor { … }
@form // ✓on POST("/signup") (body: Signup) -> Effect[HttpResult[()]] by v: Visitor { … }In the Book
See also
- Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.form_duplicateshows the same from the installed toolchain, without a network.