Skip to content
Playground(another site)

bynk.actor.foreign_name_is_context_name

Error A Foreign actor's name could be read as a context's name.

A foreign caller sends its actor's name as its caller, and a Bynk context's name is lower case. An actor named like a context could pass for one. Start the actor's name with a capital letter.

Example

actor legacy { auth = Foreign(secret = "LEGACY_CALL_KEY") } // ✗ reads as a context name
actor Legacy { auth = Foreign(secret = "LEGACY_CALL_KEY") } // ✓ capitalised

In the Book

See also

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