A Japan Airlines jet that had a fuel leak early Tuesday afternoon has taken off. Officials at Boston's Logan International Airport say crews contained a fuel leak from an outbound Japan Airlines flight to Tokyo in the second incident involving the airline at Logan in two days.

Massachusetts Port Authority spokeswoman Lisa Langone said the Boeing 787 encountered a fuel leak at about 12:30 this afternoon, and was towed back to the gate for evaluation. About 40 gallons of fuel spilled.

"The venting of the fuel was stopped and the aircraft was towed back to the gate. Massport crews  responded to the scene and contained the leak," Langone said.

The plane’s 178 passengers and 11 crew members exited the plane safely so the leak could be investigated.

A JAL spokeswoman said the crew reported a "mechanical issue" before returning to the gate. The noon flight was rescheduled for mid-afternoon departure.

On Monday, a fire broke out in a battery pack in the belly of a different Japan Airlines Boeing 787, filling the cabin with smoke minutes after passengers disembarked. The National Transportation Safety Board is still investigating the incident.

Material from the Associated Press was used in this report