Skip to content

Queue producer binding causes 500 errors on all routes when using wrangler dev --remote #9642

Open
@tobihagemann

Description

@tobihagemann

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

  1. Add a queue producer configuration to wrangler.toml:
    [[queues.producers]]
    queue = "my-queue-name"
    binding = "MY_QUEUE_BINDING"
  2. Run wrangler dev --remote
  3. Access any API route (even those that don't use the queue)
  4. 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

No one assigned

    Labels

    bugSomething that isn't workingqueuesRelating to queues

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions