bynk.service.missing_from
Error A from-less service has a handler other than on call.
A service with no from clause is a call service, and admits only on call handlers; the protocol in the header is what says how a handler is invoked. A handler of another form needs its protocol named: from http for a route, from cron, from queue("…"), from websocket(…) or from Events(E). The error suggests the one that fits the handler. If the service really is a mix, split it (see bynk.service.mixed_protocols).
Example
service worker { on message(m: String) -> Effect[QueueResult] { … } // ✗ no `from` clause}
service worker from queue("jobs") { // ✓ the protocol is named on message(m: String) -> Effect[QueueResult] { … }}In the Book
See also
- The grammar rule it governs:
service_decl. - Every code in its category, Services, on the diagnostic index.
bynk explain bynk.service.missing_fromshows the same from the installed toolchain, without a network.