You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native dev trigger /__void/queue returns 200 for a queue that no consumer handles #1060
In a native Void app, the dev trigger POST /__void/queue answers with status 200 when the queue in the body matches no consumer. The body is {"ok":false,"error":"No unambiguous queue handler matches \"<queue>\""} and the dev server logs the same error, but the status still says success, so a script or a curl -f that checks the status treats a typo in the queue name as a delivered batch.
The framework dev trigger (React Router, TanStack Start, vinext, Nuxt, Astro) answers this case with 404 and {"error":"No queue handler matches \"<queue>\""} (plugin-framework-triggers.ts). The native /__void/scheduled trigger answers an unknown cron with 404 since #1042.
Reproduction
On main (d89b033), in a native Void app with one consumer:
The dev server logs [void] No unambiguous queue handler matches "emials". The same request with "queue":"emails" returns {"ok":true} with 200 and runs the consumer.
Cause
__queueHandler in the route table generated by packages/void/src/router/compile.ts returns the result of __processQueue() with c.json(result), which is always 200. __processQueue() returns { ok: false, error } when no consumer matches.
Expected behavior
In the dev server, the native trigger answers an unknown queue with 404, like the framework one. Deployed Workers keep answering 200, since the platform's queue relay treats a 404 from /__void/queue as a legacy Worker and retries on /__queue.
Activity