Regression in wrangler 3.46.0: Accessing a Durable Object in another locally running Worker Project

We noticed a regression in accessing a Durable Object in another Worker Project when runnig locally after upgrading to 3.46.0. After this upgrade all calls to the Durable Object are failing with opaque errors. All responses result in a 500 without useful response bodies or headers.
We used the following approach to enable a locally running Worker to call another locally running Worker. With this approch we were able to start the two workers locally using
wrangler dev
and have them communicate with each other.

##############################
# Local Dev Environment
name = "accelerate-edge-local"
durable_objects.bindings = [
  # This script_name is important so that this worker talks to the local tenant manager.
  # If there's a deployed version with the same name, wrangler dev would talk to the deployed version.
  # Hence we use special names only locally.
  { name = "TENANT_MANAGER", class_name = "TenantManager", script_name = "tenant-manager-local" }
]


With this config we were calling the worker with:
const doid = c.env.TENANT_MANAGER.idFromString(apiKey.tenant_id);
const stub = c.env.TENANT_MANAGER.get(doid);
stub.fetch(...)

However this approach does not work anymore. Are there any known workarounds for this?
Was this page helpful?