bynk.http.limits_unknown_field
Error A limits { } policy declares a field outside the closed set.
A limits { } section sets the request-body ceilings of a service. Its fields are maxBody and, for @multipart routes, maxFile and maxParts. The set is closed, so a misspelt or invented field is refused rather than ignored, which would leave the routes with a ceiling you did not set. Rename it or remove it. A field with a bad value is bynk.http.limits_invalid_field; the per-route form is bynk.http.limit_unknown_arg.
Example
type Note = { text: String }
service api from http { limits { maxBody: 1_000_000, maxSize: 10 } // ✗ not a field of `limits` on POST("/notes") (body: Note) -> Effect[HttpResult[String]] by v: Visitor { … }}
service api from http { limits { maxBody: 1_000_000 } // ✓ on POST("/notes") (body: Note) -> 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.limits_unknown_fieldshows the same from the installed toolchain, without a network.