I have issues with how durable objects propagate errors. It seems like only the error's message property is propagated to the call site (e.g. worker).
The callstack is replaced with the callstack of the call site and all extra properties (like "cause" or AggregateError's "errors") are lost.
This makes debugging errors in production really hard. Only workaround seems to wrap all externally callable method bodies in a try-catch and log the error there.
Anyone else having issues with this?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
CD
Cloudflare Developers
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news