羽目になる

羽目になる (はめになる) means to end up in an undesirable situation.

Kana
はめになる
Meaning
to end up in an undesirable situation
Japanese Example
急な変更で、徹夜する羽目になった。
Translation
Because of the sudden change, I ended up staying up all night.