Closed
Description
There is a bug when using the cloudflare wrappers (cloudflare-node
and cloudflare-edge
)
It will manifest with the following log:
workerd/io/worker.c++:1195: warning: NOSENTRY Warning: Cross Request Promise Resolve
The root cause is that we share ctx.waitUntil()
on globalThis.openNextWaitUntil
:
globalThis.openNextWaitUntil = ctx.waitUntil.bind(ctx);
The problem here is that ctx.waitUntil
is request specific but globalThis
is shared across requests. We should add it to ALS instead.
I hope I'll get to fixing this later today, otherwise in the next few days.
Edit: the warning has been removed from workerd in cloudflare/workerd#3388, you need to run the e2e with workerd v1.20250121.0 to see the warning
Metadata
Metadata
Assignees
Labels
No labels