bynk.test.wire_http_only
Error A Wire(...) raw argument is passed to a queue, cron, on call or event address; Wire drives an http body or path segment only, so a queue message, cron tick or event is passed as a typed value.
Wire(…) delivers raw text to an http body or path segment. A queue message, a cron tick, an on call or an event has no raw text form: it is a typed value, and Wire would hand it to a typed decoder as a string and fail confusingly at run time. Pass the typed value. To drive an http route with raw text, see bynk.test.wire_needs_system.
Example
service packer from queue("packing") { … }
// tests/api.test.bynklet r <- packer.message(Wire("{}")) // ✗ a queue takes a typed messagelet r <- packer.message("{}") // ✓In the Book
See also
- The grammar rule it governs:
case. - Every code in its category, Tests, on the diagnostic index.
bynk explain bynk.test.wire_http_onlyshows the same from the installed toolchain, without a network.