Rockets hit Libya's main airport and damaged a plane as it was waiting to take off early on Thursday, a security force said, the same day as the United Nations envoy and France's ambassador were visiting the capital to discuss a peace plan.
One rocket hit an Airbus 320 and others struck the arrivals hall at Tripoli's Mitiga airport at around 2 a.m. (midnight GMT), but no one was injured, a spokesman for the Special Deterrence Force (Rada) said.
U.N. envoy Ghassan Salame and French ambassador Brigitte Curmi arrived at the same airport - the only one operating in the city. Their offices did not immediately release a statement on the attack or say when they landed.
Tripoli has been controlled by a patchwork of armed groups since a 2011 uprising that toppled long-time leader Muammar Gaddafi and splintered the country.
There have been rival governments in Tripoli and the east since 2014, when most diplomatic missions evacuated to neighboring Tunisia.
Armed groups fighting for territory and power have regularly attacked Tripoli's transport hubs - undermining the government's efforts to persuade diplomatic missions to return to the capital.
Airlines have also struggled to maintain services and keep the oil-producing country connected to the outside world as attacks damage their planes.
Rada, a security group that controls the airport aligned to Libya's internationally-recognized government, said the rockets were fired by men loyal to a militia leader known as Bashir "the Cow," a group it has clashed with before.
France's Curmi met representatives of that government in Tripoli at around 9 a.m., and the U.N.'s Salame held his meeting in the early afternoon.
When asked whether elections would be held this year, Salame said after meeting Foreign Minister Mohamed Taher Siala: "Sure. We promised this the U.N. Security Council." He did not elaborate.
The United Nations launched a new round of talks in September in Tunis between the rival factions to prepare for presidential and parliamentary elections in 2018 but divisions have prevented reaching an accord.
Mitiga is a military air base near the center of Tripoli that began hosting civilian flights after the international airport was put out of service in 2014.