Skip to content
Playground(another site)

bynk.actor.foreign_identity_unsupported

Error A Foreign actor declares an identity.

A Foreign actor is its own identity: a handler tells foreign callers apart by matching on its by sum, not by a value carried in. So identity is refused, where a Bearer actor takes one from its token. Remove it.

Example

type Who = String where NonEmpty
actor Legacy { auth = Foreign(secret = "LEGACY_CALL_KEY"), identity = Who } // ✗ the actor is the identity
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_identity_unsupported shows the same from the installed toolchain, without a network.