SAN FRANCISCO, CA - APRIL 18:  United Airlines planes sit on the tarmac at San Francisco International Airport on April 18, 2018 in San Francisco, California.  United Continental Holdings reported better than expected first quarter earnings with revenue of $9.03 billion compared to analyst expectations of $9.01 billion.  (Photo by Justin Sullivan/Getty Images)
CNN  — 

A United Airlines flight was diverted to Denver, Colorado, on Wednesday night to free a passenger stuck in the bathroom.

“The lavatory door became inoperative” during Flight 1554 from Washington, D.C., to San Francisco, according to a United Airlines statement. A female passenger was trapped inside.

In Denver, “the passenger was safely removed from the lavatory after landing, and customers have since continued on to their destination on a new aircraft,” the airline said.

Twitter user @taylorkkimber posted video online of maintenance technicians working on the door.

“We’re just working on opening up the door at the moment, ma’am. We’ll get you out soon, OK?” one of the men is heard saying.

Flight 1554 was originally scheduled to arrive in San Francisco at 8:38 p.m. Wednesday night. The diverted flight arrived in San Francisco after 11 p.m.

“We are reaching out to all customers onboard and the customer in the lavatory to apologize,” the United Airlines statement said.

The airline didn’t immediately respond to questions about possible compensation for the trapped passenger.