Skip to content
Playground(another site)

bynk.queue.invalid_name

Error A from queue("…") binding has an empty queue name, or one Cloudflare refuses.

from queue("…") names a Cloudflare queue, so the name must be one Cloudflare accepts: 1 to 63 lowercase letters, digits or -, starting and ending with a letter or digit. An empty name, capitals or _ are refused here, rather than failing at deploy. Rename it, for example order-events.

Example

service worker from queue("Order_Events") {
on message(message: String) -> Effect[QueueResult] { … } // ✗ capitals and `_` in the name
}
service worker from queue("order-events") {
on message(message: String) -> Effect[QueueResult] { … } // ✓
}

In the Book

See also

  • The grammar rule it governs: queue_handler.
  • Every code in its category, Queue, on the diagnostic index.
  • bynk explain bynk.queue.invalid_name shows the same from the installed toolchain, without a network.