Back to JavaScript Errors
JavaScript Error

AggregateError

Multiple errors occurred

What does this error mean?

Multiple errors were wrapped together, commonly used with Promise.allSettled() or Promise.any().

How to fix AggregateError?

Handle individual errors from the errors array. Check all promises in Promise.allSettled(). Review error handling logic.

Example
Promise.allSettled([Promise.reject('error1'), Promise.reject('error2')]); // AggregateError