bynk.actor.scheme_not_admissible
Error An actor's scheme is not admissible on this handler's protocol.
Each protocol admits only the schemes that can be verified on it. HTTP takes None (Visitor), Bearer, Signature and Oidc; a WebSocket takes None and Bearer; call takes Internal and Foreign; cron and queue take Internal. A Visitor on cron is wrong because nothing public calls a cron handler: the platform does. Use the actor made for the protocol: Scheduler for cron, Producer for queue, Caller for on call. Caller is admitted on on call only.
Example
service jobs from cron { on schedule("* * * * *") () -> Effect[Result[(), String]] by v: Visitor { // ✗ cron takes an `Internal` actor Ok(()) }}
service jobs from cron { on schedule("* * * * *") () -> Effect[Result[(), String]] by s: Scheduler { // ✓ the cron actor Ok(()) }}In the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.scheme_not_admissibleshows the same from the installed toolchain, without a network.