Handle Async Errors

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • easy
  • Pro

A page fetches data with async and await, and when the network fails the page just stays on a loading spinner while the console shows an unhandled promise rejection. Explain how errors travel through promises, and how you'd handle them so the user sees a helpful message.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →