bynk.service.unknown_via_clause
Error A via <name>(...) clause on a from Events(...) header named something other than schema — via clauses are a closed set, and only via schema(...) exists today.
A via clause narrows which events an Events subscriber receives, and the only form is via schema(N), which selects by the event's schema version. The set of via clauses is closed, so any other word after via is refused. Use via schema(N) or drop the clause. A malformed argument to schema itself is bynk.event.bad_schema_dispatch.
Example
service OnPaid from Events(Paid) via nope(1) { // ✗ only `schema` follows `via` on event(e: Paid) -> Effect[()] { … }}
service OnPaid from Events(Paid) via schema(1) { // ✓ dispatch on the schema version on event(e: Paid) -> Effect[()] { … }}In the Book
See also
- Every code in its category, Services, on the diagnostic index.
bynk explain bynk.service.unknown_via_clauseshows the same from the installed toolchain, without a network.