bynk.http.unknown_handler_annotation
Error A handler carries an annotation outside the closed set (@cache/@limit).
The handler annotations are a closed set: @cache, @limit, @raw, @form, @multipart and @json. Each changes how the router treats the route, so a misspelt one that was ignored would silently lose the behaviour you wanted, such as a freshness window or a body cap. Fix the spelling or remove the annotation. Settings shared by every route belong on the service, in a cors, security, limits or json block.
Example
@cached(maxAge: 5.minutes) // ✗ no such annotationon GET("/links") () -> Effect[HttpResult[String]] by v: Visitor { … }
@cache(maxAge: 5.minutes) // ✓In the Book
See also
- Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.unknown_handler_annotationshows the same from the installed toolchain, without a network.