bynk.deploy.route_conflict
Error Two members of one [deploy.workers.<key>] group declare the same HTTP method and path; a Worker answers a route with one handler.
A [deploy.workers.<key>] group folds its members into one Worker, which answers each HTTP method and path with one handler. Two members that declare the same method and path would give the Worker two handlers for one request, so the later one is refused. Change one of the routes, often by giving each context a path prefix of its own, or put the contexts in different groups. Within one context the same clash is bynk.http.duplicate_route.
Example
[deploy.workers.core]contexts = ["shop.orders", "shop.billing"]
// shop/orders.bynkon GET("/status") () -> Effect[HttpResult[String]] by who: Visitor { … }
// shop/billing.bynkon GET("/status") () -> Effect[HttpResult[String]] by who: Visitor { … } // ✗ `shop.orders` answers `GET /status`on GET("/billing/status") () -> Effect[HttpResult[String]] by who: Visitor { … } // ✓In the Book
See also
- Every code in its category, Deployment, on the diagnostic index.
bynk explain bynk.deploy.route_conflictshows the same from the installed toolchain, without a network.