httpServerHandler + Fastify

Probably not a worker issue, but I'm trying to get httpServerHandler working with Fastify First error is
service core:user:fastify-test: Uncaught TypeError: Cannot destructure property 'serializersSym' of 'pino.symbols' as it is undefined.
service core:user:fastify-test: Uncaught TypeError: Cannot destructure property 'serializersSym' of 'pino.symbols' as it is undefined.
I got around this by disabling logging. Pino uses streams or something, idk. Second error is now
service core:user:fastify-test: Uncaught Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/
service core:user:fastify-test: Uncaught Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/
Now I'm having issues with wrangler not using source maps (this is before init, so source maps are not used I suppose), so having issues tracking down what's calling it.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?