Open Soviut opened 1 month ago
Seeing the same issues on Windows 11 Node v21.7.3 with miniflare 3.20240610.1. All queue producers fail with Error: Network connection lost.
I assume this issue is caused by https://github.com/cloudflare/workers-sdk/commit/66bdad08834b403100d1e4d6cd507978cc50eaba.
The zod schema for queueProducers is wrong and the Record<string, string>
format is no longer valid. Using Record<string, QueueProducerOptions>
works.
queueProducers: {
CANDIDATES_QUEUE: {
queueName: 'candidates-queue',
},
},
I created a PR to fix the zod schema here https://github.com/cloudflare/workers-sdk/pull/6128.
Which Cloudflare product(s) does this pertain to?
Miniflare
What version(s) of the tool(s) are you using?
3.20240512.0 [miniflare]
What version of Node are you using?
20.9.0
What operating system and version are you using?
Unbutu 22 under WSL2 on Windows 11
Describe the Bug
My producer can't send messages to my queue in miniflare.
Observed behavior
I'm testing a basic miniflare configuration with two workers and a queue. One worker is the producer, the other is the consumer.
Trying to send any messages to the queue result in the following error.
It happens when you call the producer's route (which sends a message to the queue)
And it also happens when you get the producer directly from the miniflare instance and try to send a message.
Expected behavior
I expect the producer to be able to send a message to the queue and return a response. I expect the consumer to consume the message from the queue and log out what it found.
Steps to reproduce
run the following code with
npx tsx .
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs