Washer only drains when drain button is pushed

Please help:) I have an apartment washer/dryer unit (front loading dryer on top of washer). Last night I heard a series of beeps and then the water didn’t drain during the cycle. I opened the door and water and foam and cleaning liquid came out on both sides of Washer and in the front. When I used the drain option, the Washer drained.

Do I need a repairman for this? Thank you!

P.S. I don’t have the brand because I’m not at the apartment