There were nearly 180 people on board the aircraft at the time of the near-miss.