Expert Tip - Workers Debugging Tips


1 Like

Quick note (which tripped me up in the beginning):

It’s crucial to await your Response promises within the try/catch blocks, otherwise it won’t be caught and the standard Cloudflare HTML error page comes up.

(try/catch around event.waitUntil or event.respondWith also won’t work)

1 Like