The U.S. had piles of intelligence on this and plenty of warnings. The Obama Administration and the Clinton State Department ignored the intelligence and the hundreds of warnings to further the Obama/Hillary narrative that the "war" in Libya was over and al Qaeda was crushed in order to get him re-elected.
They acted like they did not know what was going to happen at the airport.
I do not know how many warnings they had but they still did nothing.