Get to know MDN better
The JavaScript exception "No Promise in Promise.any was resolved" occurs when all promises passed to Promise.any() are rejected. It is the only built-in usage of AggregateError.
Promise.any() only rejects when all promises passed to it are rejected. You should access errors to get the array of rejection reasons. See Using promises for more information on how to handle asynchronously rejected promises. This error is also raised when Promise.any() receives an empty iterable.
This page was last modified on Jul 8, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.