Original: Initially the invasion proceeds as planned, but Aang fails to find the Fire Lord before the eclipse ends.
Simplified: Initially the invasion proceeds as planned, but Aang fails to find the Fire Lord before the eclipse ends, because Azula knew about the invasion.