You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloudflare Wrangler has a getPlatformProxy function that can emulate and proxy Cloudflare Worker capabilities (see their docs. When running getPlatformProxy in Bun, it hangs. I confirmed that it's running fine in Node.js.
Please not that this only happens when a Durable Object is defined, running getPlatformProxy without DOs defined in wrangler.json works fine. Probably because it doesn't even attempt to create any network connections in this case.
What is the expected behavior?
See step 5 above, getPlatformProxy() should run and produce output.
What do you see instead?
getPlatformProxy() hangs indefinitely.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.43-canary.107+005cdb2bf
What platform is your computer?
Darwin 24.2.0 arm64 arm
What steps can reproduce the bug?
Cloudflare Wrangler has a
getPlatformProxy
function that can emulate and proxy Cloudflare Worker capabilities (see their docs. When running getPlatformProxy in Bun, it hangs. I confirmed that it's running fine in Node.js.I create a reproduction here: https://github.com/bndkt/bun-wrangler-repro
bun install
in root directory (monorepo)bun dev
inhost
directorybun dev
inclient
directoryNow two wrangler instances are running, the one in client is connecting to a Durable Object that's being served by the one in host.
client
directory and runbun dev-bun
instead.This is now running
const platform = await getPlatformProxy();
which is supposed to the DO served by the host wrangler as well, but it just hangs.client
directory and runbun dev-node
instead.See output from getPlatformProxy(), it works in Node.
Please not that this only happens when a Durable Object is defined, running getPlatformProxy without DOs defined in wrangler.json works fine. Probably because it doesn't even attempt to create any network connections in this case.
What is the expected behavior?
See step 5 above, getPlatformProxy() should run and produce output.
What do you see instead?
getPlatformProxy() hangs indefinitely.
Additional information
No response
The text was updated successfully, but these errors were encountered: