dz4k
dz4k
Explore posts from servers
CDCloudflare Developers
Created by dz4k on 8/10/2023 in #workers-help
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.
7 replies