workers runtime cancelling request with cloudflare/vite-plugin
9:47:18 PM [vite] Internal server error: The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/
at async ProxyServer.fetch (file:///home/akshat/Documents/git/commander/node_modules/.pnpm/miniflare@4.20251011.1/node_modules/miniflare/src/workers/core/proxy.worker.ts:174:11)
I am getting this error when i run the dev script, even if i don't use the cloudflare plugin at dev mode, the prod build also fails sometime with the same error.
I want to migrate to cloudflare, earlier i was using nitroV2Plugin and deploying to vercel5 Replies
other-emerald•4w ago
can you share a complete reproducer project ?
eastern-cyanOP•4w ago
it is a private repo can i give you access to it?
#but i am getting this error we were looking into this issue in this thread, thought this was only occuring on my local machine, but this is coming on prod as well
https://commander.syllabusx.live. I think it comes with the first request, when i reload it usually resolves
with cloudflare plugin in dev it does not work at all
other-emerald•4w ago
probably best if you create a reproducer and then create an issue here https://github.com/cloudflare/workers-sdk/issues as it sounds this is more a cloudflare specific issue
GitHub
cloudflare/workers-sdk
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - cloudflare/workers-sdk
eastern-cyanOP•4w ago
hey, i think it was because i was using drizzle-orm/node-postgress, i am not seeing that error when i use drizzle-orm/neon-http. But is this meant to be or an issue to report?
so cloudflare plugin will be acting as a worker?
other-emerald•4w ago
I would just report an issue there to find out