bynk.event.unknown_subscription
Error A from Events(E) subscription named E, which is not a declared event in this context or any consumed context.
A from Events(E) header must name an event declared in this context or in a context it consumes. A name that matches neither would be a subscription that never receives anything, and nothing would say so; it is almost always a misspelling, or a consumes that is missing. Fix the name, or add consumes for the context whose event it is.
Example
context mailer
consumes orders
service onPaid from Events(Payd) { // ✗ no event `Payd`
service onPaid from Events(Paid) { // ✓ the event `orders` declaresIn the Book
See also
- Every code in its category, Events, on the diagnostic index.
bynk explain bynk.event.unknown_subscriptionshows the same from the installed toolchain, without a network.