bynk.actor.unknown_actor
Error A handler's by clause names an actor that is not declared.
A by clause must name an actor the compiler can find: one declared with actor in this context, or a prelude actor (Visitor, Caller, Scheduler or Producer). Anything else is a misspelling or a missing declaration. The compiler will not guess, because the actor decides how callers are verified. Fix the spelling, or declare the actor first with actor Name { auth = … }.
Example
on GET("/health") () -> Effect[HttpResult[String]] by v: Visitr { // ✗ no actor of that name
on GET("/health") () -> Effect[HttpResult[String]] by v: Visitor { // ✓ the prelude actorIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.unknown_actorshows the same from the installed toolchain, without a network.