Queues on Wrangler, zod error

I keep getting this error when I try to send something via queue in local dev:
[mf:err] ZodError: [
{
"received": "ok",
"code": "invalid_enum_value",
"options": [
0,
1,
2,
3,
4,
5,
6,
7,
8
],
"path": [
"outcome"
],
"message": "Invalid enum value. Expected 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8, received 'ok'"
}
]
at get error [as error] (/home/dz4k/Projects/<redacted>/node_modules/zod/lib/types.js:43:31)
at ZodObject.parse (/home/dz4k/Projects/<redacted>/node_modules/zod/lib/types.js:141:22)
at #dispatchBatch (/home/dz4k/Projects/<redacted>/node_modules/miniflare/dist/src/index.js:7064:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #flush [as _onTimeout] (/home/dz4k/Projects/<redacted>/node_modules/miniflare/dist/src/index.js:7073:18)
[mf:err] ZodError: [
{
"received": "ok",
"code": "invalid_enum_value",
"options": [
0,
1,
2,
3,
4,
5,
6,
7,
8
],
"path": [
"outcome"
],
"message": "Invalid enum value. Expected 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8, received 'ok'"
}
]
at get error [as error] (/home/dz4k/Projects/<redacted>/node_modules/zod/lib/types.js:43:31)
at ZodObject.parse (/home/dz4k/Projects/<redacted>/node_modules/zod/lib/types.js:141:22)
at #dispatchBatch (/home/dz4k/Projects/<redacted>/node_modules/miniflare/dist/src/index.js:7064:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #flush [as _onTimeout] (/home/dz4k/Projects/<redacted>/node_modules/miniflare/dist/src/index.js:7073:18)
This looks like a bug in miniflare itself, but I can't find any mention of anyone else running into it.
1 Reply
dz4k
dz4kOP17mo ago
This only happens on wrangler 3.5. I think I'll file a bug I will when I'm home this is after I downgraded to 3.4:
npm why workerd
node_modules/workerd
workerd@"1.20230724.0" from [email protected]
node_modules/miniflare
miniflare@"3.20230724.0" from [email protected]
node_modules/wrangler
dev wrangler@"^3.4.0" from the root project
npm why workerd
node_modules/workerd
workerd@"1.20230724.0" from [email protected]
node_modules/miniflare
miniflare@"3.20230724.0" from [email protected]
node_modules/wrangler
dev wrangler@"^3.4.0" from the root project
this is after re-upgrading to 3.5 and reproducing the error:
npm why workerd
node_modules/workerd
workerd@"^1.20230801.0" from [email protected]
node_modules/miniflare
miniflare@"3.20230801.0" from [email protected]
node_modules/wrangler
dev wrangler@"^3.5.0" from the root project
npm why workerd
node_modules/workerd
workerd@"^1.20230801.0" from [email protected]
node_modules/miniflare
miniflare@"3.20230801.0" from [email protected]
node_modules/wrangler
dev wrangler@"^3.5.0" from the root project
looks like it's installing a version of workerd that's too new manually installing [email protected] removes the error
Want results from more Discord servers?
Add your server