Skip to content
Playground(another site)

bynk.deploy.service_name_conflict

Error Two members of one [deploy.workers.<key>] group declare a service of the same name; a Worker answers its members' services by name.

A service is called by its name alone: a call from another context goes to /_bynk/call/<service>, and the address names no context. A [deploy.workers.<key>] group folds its members into one Worker, which answers all their services, so two members with a service of the same name would leave it unable to tell the calls apart. Rename one of the services, or put the contexts in different groups.

Example

bynk.toml
[deploy.workers.core]
contexts = ["shop.orders", "shop.billing"]
// shop/orders.bynk
service lookup { … }
// shop/billing.bynk
service lookup { … } // ✗ `shop.orders` has a `lookup`
service invoice { … } // ✓

In the Book

See also

  • Every code in its category, Deployment, on the diagnostic index.
  • bynk explain bynk.deploy.service_name_conflict shows the same from the installed toolchain, without a network.