Description
What versions & operating system are you using?
Wrangler v4.20.1, Node v22.16.0, macOS 15.5 (M4)
Please provide a link to a minimal reproduction
No response
Describe the Bug
When a queue producer is configured in wrangler.toml
, ALL API routes return 500 Internal Server Error when using wrangler dev --remote
, even routes that don't use the queue binding. The issue only occurs with remote development; local development (wrangler dev
) and production deployments work correctly.
Steps to Reproduce
- Add a queue producer configuration to
wrangler.toml
:[[queues.producers]] queue = "my-queue-name" binding = "MY_QUEUE_BINDING"
- Run
wrangler dev --remote
- Access any API route (even those that don't use the queue)
- Observe 500 Internal Server Error
Expected Behavior
Routes that don't use the queue binding should work normally, even if queue functionality is limited in remote dev mode.
Actual Behavior
All routes return 500 errors when the queue producer configuration is present.
Workaround
Commenting out the queue producer configuration allows all routes to work normally in remote dev mode.
Please provide any relevant error logs
[wrangler:info] GET /api/example-endpoint 500 Internal Server Error (134ms)
No additional error details are available even with --log-level=debug
. The 500 error provides no stack trace or specific error message.
Metadata
Metadata
Assignees
Type
Projects
Status