Expert Tip - Workers Debugging Tips

Screenshot%20from%202019-08-23%2017-03-25

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