# Unhandled rejection

> **UnhandledRejection**: Astro detected an unhandled rejection. Here’s the stack trace:\
> STACK

## What went wrong?

[Section titled “What went wrong?”](#what-went-wrong)

Astro could not find any code to handle a rejected `Promise`. Make sure all your promises have an `await` or `.catch()` handler.