RPC calls to Durable Object throw "internal error" when Tail Worker is connected

OAuth callback failed: internal error; reference = lgppsme4v6d7pl47h57npdvq The tail worker for the main worker seems to be working (it's a simple fetch() call to Axiom) but the Durable Object seems to be throwing "internal error" when the tail consumer is set
const customerManager = env.CustomerManager.get(env.CustomerManager.idFromName("singleton"));

const oauthProfile: OAuthProfile = {
// ...
};

// Upsert customer from OAuth profile
return await customerManager.upsertCustomerFromOAuth(oauthProfile);
const customerManager = env.CustomerManager.get(env.CustomerManager.idFromName("singleton"));

const oauthProfile: OAuthProfile = {
// ...
};

// Upsert customer from OAuth profile
return await customerManager.upsertCustomerFromOAuth(oauthProfile);
No logs are captured from the customerManager. If i remove the tail consumer from the service, invoking the durable object works again
1 Reply
grrowl
grrowlOP5mo ago
in this case CustomerManager is exported from the main index.ts
export { CustomerManagerDO } from "./customer/customer-manager.do";
export { CustomerManagerDO } from "./customer/customer-manager.do";
and in wrangler.toml:
[[durable_objects.bindings]]
name = "CustomerManager"
class_name = "CustomerManagerDO"
[[durable_objects.bindings]]
name = "CustomerManager"
class_name = "CustomerManagerDO"
the tail worker is the same worker (index.ts export)
[[tail_consumers]]
service = "onoflex"
[[tail_consumers]]
service = "onoflex"

Did you find this page helpful?