Skip to content
Playground(another site)

bynk.actor.foreign_context_name_unkeyable

Error A context declaring a Foreign actor has a name no call key can be named from.

A foreign caller signs its calls under a key named from the context's name, BYNK_CALL_TO_<CONTEXT>. The name must therefore be lower-case letters and digits in dot-separated segments, each starting with a letter, with single underscores between runs: no __, and no trailing _. Rename the context, or move the foreign actor to one whose name qualifies.

Example

context shop.orders_
actor Legacy { auth = Foreign(secret = "LEGACY_CALL_KEY") } // ✗ no key can be named from `shop.orders_`
context shop.orders
actor Legacy { auth = Foreign(secret = "LEGACY_CALL_KEY") } // ✓

In the Book

See also

  • Every code in its category, Actors, on the diagnostic index.
  • bynk explain bynk.actor.foreign_context_name_unkeyable shows the same from the installed toolchain, without a network.