bynk.actor.unreachable_sum_arm
Error A multi-actor sum has an arm unreachable after a catch-all (None) peer.
In by who: A | B the peers are tried in order and the first to verify wins. Visitor, or any other None peer, accepts everyone, so a peer after it can never be reached and its check would never run. Put the catch-all last. A repeated scheme is a different mistake, bynk.actor.duplicate_sum_scheme.
Example
type UserId = String where NonEmptyactor User { auth = Bearer(secret = "JWT_KEY"), identity = UserId }
service api from http { on POST("/x") () -> Effect[HttpResult[String]] by who: Visitor | User { // ✗ `Visitor` accepts everyone first
service api from http { on POST("/x") () -> Effect[HttpResult[String]] by who: User | Visitor { // ✓ the catch-all lastIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.unreachable_sum_armshows the same from the installed toolchain, without a network.