What about handling errors from nested promises with async/await in Node.js?
#1
I'm working on a Node.js API and I've refactored a bunch of callbacks to use async/await, which feels much cleaner. But now I'm running into issues with javascript async await error handling that I didn't have before. My try/catch blocks seem to be missing some errors, especially from nested promises or operations that happen in loops. Is there a standard pattern or a common pitfall I might be missing here?
Reply


[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: