Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

The examples you provided in https://

The examples you provided in https://github.com/cloudflare/workers-sdk/tree/main/fixtures/vitest-pool-workers-examples are really useful! I was in particular looking for a best practice example to test WebSockets. I was trying the following setup (which is roughly how it worked in Miniflare v2): ```...

Why am i not seeing my console.log

Why am i not seeing my console.log output in tests? I'm building a cloudflare worker using Hono and using vitest for testing. I have a simple test file but the second 'console.log' isn't showing. Why not? When I remove the call to "request" it does show. (p.s. createExecutionContext/waitOnExecutionContext doesn't make a difference) ```typescript...

šŸ› BUG: "Module cannot be synchronously ...

Hello! šŸ‘‹ I'm currently trying to migrate our test suite to Vite + the new pool workers, and I have run into this issue while doing so: https://github.com/cloudflare/workers-sdk/issues/5367 — is this a known issue? Any recommendations?

Asserting like this: `expect(res2.

Asserting like this: expect(res2.headers.get('CF-Cache-Status')).toBe('HIT') I am using waitUntil for the cache put, but awaiting it doesn't seem to work either...

sorry for all the spam, haha

sorry for all the spam, haha ``` workerd/io/worker.c++:1816: info: uncaught exception; source = Uncaught (in promise); exception = TypeError: Cannot use require() to import an ES Module. workerd/io/io-context.c++:359: info: uncaught exception; exception = workerd/jsg/_virtual_includes/jsg/workerd/jsg/value.h:1343: fa...

Fetch cannot load MY_PATH

I'm currently stuck with this error cross all integration tests:
TypeError: Fetch API cannot load: <MY_PATH>
TypeError: Fetch API cannot load: <MY_PATH>
...

Had a really strange issue where my

Had a really strange issue where my tests could no longer run due to AssertionError: Expected Vitest to start running before importing modules
No description

getting a few weird errors when trying

getting a few weird errors when trying to run this
workerd/server/server.c++:2676: error: Fallback service failed to fetch module; payload = ; spec = /?specifier=%2FUsers%2Fandreasthomas%2Fgithub%2Funkeyed%2Funkey%2Fnode_modules%2F.pnpm%2F%40hono%2Bzod-validator%400.1.11_hono%404.1.0_zod%403.22.4%2Fnode_modules%2F%40hono%2Fzod-validator%2Fdist%2Fesm%2Findex.js&referrer=%2FUsers%2Fandreasthomas%2Fgithub%2Funkeyed%2Funkey%2Fnode_modules%2F.pnpm%2F%40hono%2Bzod-openapi%400.9.8_hono%404.1.0_zod%403.22.4%2Fnode_modules%2F%40hono%2Fzod-openapi%2Fdist%2Findex.mjs
workerd/server/server.c++:2676: error: Fallback service failed to fetch module; payload = ; spec = /?specifier=%2FUsers%2Fandreasthomas%2Fgithub%2Funkeyed%2Funkey%2Fnode_modules%2F.pnpm%2F%40hono%2Bzod-validator%400.1.11_hono%404.1.0_zod%403.22.4%2Fnode_modules%2F%40hono%2Fzod-validator%2Fdist%2Fesm%2Findex.js&referrer=%2FUsers%2Fandreasthomas%2Fgithub%2Funkeyed%2Funkey%2Fnode_modules%2F.pnpm%2F%40hono%2Bzod-openapi%400.9.8_hono%404.1.0_zod%403.22.4%2Fnode_modules%2F%40hono%2Fzod-openapi%2Fdist%2Findex.mjs
the mentioned package @hono/zod-validator is installed and runs correctly when I run the worker via wrangler...

R2 help

Hi Friends, I have registered with cloudflare. I am looking for for the following parameter values. CLOUDFLARE_R2_ACCESS_KEY_ID=xxxxxx -- OK #2 CLOUDFLARE_R2_SECRET_ACCESS_KEY= -- Help CLOUDFLARE_R2_BUCKET=mytesting...